• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // RUN: %clang_cc1 -triple x86_64-apple-darwin10 -fapple-kext -emit-llvm -o - %s | FileCheck %s
2 
3 struct Base {
4   virtual ~Base();
5 } ;
6 
7 struct Derived : Base {
deleteDerived8   void operator delete(void *) { }
9   Derived();
10 };
11 
foo()12 void foo() {
13   Derived d1;			// ok
14 }
15 
f(unsigned n)16 inline unsigned f(unsigned n) { return n == 0 ? 0 : n + f(n-1); }
17 
g(unsigned n)18 unsigned g(unsigned n) { return f(n); }
19 
20 
ident(X x)21 template <typename X> X ident(X x) { return x; }
foo(int n)22 int foo(int n) { return ident(n); }
23 
24 // CHECK-NOT: define linkonce_odr
25 // CHECK 5 : define internal
26