blob: 90e8ea66f769866110cc282c2c40c7f9774b1aa2 [file] [log] [blame]
Daniel Dunbara5728872009-12-15 20:14:24 +00001// RUN: %clang_cc1 %s -triple=x86_64-apple-darwin10 -emit-llvm -o - | FileCheck %s
Anders Carlssond58987c2009-12-07 07:59:52 +00002// PR5697
3namespace PR5697 {
4struct 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
13A::A() { }
14A::A(int) { }
15}