2011-10-14 06:29:44 +08:00
|
|
|
// RUN: %clang_cc1 -std=c++11 -emit-llvm -o - %s | FileCheck %s
|
2011-05-24 05:07:59 +08:00
|
|
|
template<typename T>
|
|
|
|
struct X
|
|
|
|
{
|
|
|
|
X() = default;
|
2012-01-14 12:30:29 +08:00
|
|
|
~X() {} // not a literal type
|
2011-05-24 05:07:59 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
X<int> x;
|
|
|
|
// CHECK: define internal void @__cxx_global_var_init()
|
2011-06-15 05:20:53 +08:00
|
|
|
// CHECK: call {{.*}} @_ZN1XIiEC1Ev
|
|
|
|
// CHECK: define linkonce_odr {{.*}} @_ZN1XIiEC1Ev
|
|
|
|
// CHECK: define linkonce_odr {{.*}} @_ZN1XIiEC2Ev
|