brintos

brintos / llvm-project-archived public Read only

0
0
Text · 458 B · 95ba2be Raw
15 lines · cpp
1// RUN: %clang_cc1 -std=c++11 -triple %itanium_abi_triple -emit-llvm -o - %s | FileCheck %s2struct A { A(); };3template<typename T>4struct X : A // default constructor is not trivial5{6    X() = default;7    ~X() {} // not a literal type8};9 10X<int> x;11// CHECK-LABEL: define internal {{.*}}void @__cxx_global_var_init()12// CHECK: call {{.*}} @_ZN1XIiEC1Ev13// CHECK: define linkonce_odr {{.*}} @_ZN1XIiEC1Ev14// CHECK: define linkonce_odr {{.*}} @_ZN1XIiEC2Ev15