1 | // RUN: %clang_cc1 -triple %itanium_abi_triple -emit-llvm -std=c++11 -fcxx-exceptions -fexceptions -S -emit-llvm -o - %s | FileCheck %s |
2 | |
3 | namespace std { |
4 | struct string { |
5 | const char *p; |
6 | string(const char *s); |
7 | ~string(); |
8 | }; |
9 | } |
10 | |
11 | struct Bar { |
12 | int a; |
13 | }; |
14 | |
15 | struct Foo { |
16 | std::string c; |
17 | Bar d[32]; |
18 | }; |
19 | |
20 | static Foo table[] = { |
21 | { "blerg" }, |
22 | }; |
23 | |
24 | // CHECK: define internal void @__cxx_global_var_init |
25 | // CHECK: invoke {{.*}} @_ZNSt6stringC1EPKc( |
26 | // CHECK-NOT: unreachable |
27 | // CHECK: br label |
28 | |