Richard Smith | 9ca5c42 | 2011-10-13 22:29:44 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -std=c++11 -emit-llvm -o - %s | FileCheck %s |
Alexis Hunt | 1fb4e76 | 2011-05-23 21:07:59 +0000 | [diff] [blame] | 2 | template<typename T> |
| 3 | struct X |
| 4 | { |
| 5 | X() = default; |
Richard Smith | dafff94 | 2012-01-14 04:30:29 +0000 | [diff] [blame] | 6 | ~X() {} // not a literal type |
Alexis Hunt | 1fb4e76 | 2011-05-23 21:07:59 +0000 | [diff] [blame] | 7 | }; |
| 8 | |
| 9 | X<int> x; |
| 10 | // CHECK: define internal void @__cxx_global_var_init() |
Eli Friedman | 50ed150 | 2011-06-14 21:20:53 +0000 | [diff] [blame] | 11 | // CHECK: call {{.*}} @_ZN1XIiEC1Ev |
| 12 | // CHECK: define linkonce_odr {{.*}} @_ZN1XIiEC1Ev |
| 13 | // CHECK: define linkonce_odr {{.*}} @_ZN1XIiEC2Ev |