blob: 0d267ff70372f43300984812383c5b568bb11523 [file] [log] [blame]
Richard Smith762bb9d2011-10-13 22:29:44 +00001// RUN: %clang_cc1 -std=c++11 -emit-llvm -o - %s | FileCheck %s
Richard Smithe653ba22012-02-26 00:31:33 +00002struct A { A(); };
Sean Hunteb88ae52011-05-23 21:07:59 +00003template<typename T>
Richard Smithe653ba22012-02-26 00:31:33 +00004struct X : A // default constructor is not trivial
Sean Hunteb88ae52011-05-23 21:07:59 +00005{
6 X() = default;
Richard Smith2d6a5672012-01-14 04:30:29 +00007 ~X() {} // not a literal type
Sean Hunteb88ae52011-05-23 21:07:59 +00008};
9
10X<int> x;
11// CHECK: define internal void @__cxx_global_var_init()
Eli Friedman12e9f8e2011-06-14 21:20:53 +000012// CHECK: call {{.*}} @_ZN1XIiEC1Ev
13// CHECK: define linkonce_odr {{.*}} @_ZN1XIiEC1Ev
14// CHECK: define linkonce_odr {{.*}} @_ZN1XIiEC2Ev