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