1 // RUN: clang-cc %s -triple=x86_64-apple-darwin10 -emit-llvm -o - | FileCheck %s
2 // PR5697
3 namespace PR5697 {
4 struct A {
5   virtual void f() { }
6   A();
7   A(int);
8 };
9 
10 // A does not have a key function, so the first constructor we emit should
11 // cause the vtable to be defined (without assertions.)
12 // CHECK: @_ZTVN6PR56971AE = weak_odr constant
13 A::A() { }
14 A::A(int) { }
15 }
16