[clang] Handle __declspec() attributes in using
[llvm-project.git] / clang / test / CodeGenCXX / partial-init.cpp
blobcb94660915cac9e11ece8d5143a8c0b904bdc301
1 // RUN: %clang_cc1 -triple %itanium_abi_triple -emit-llvm -std=c++11 -fcxx-exceptions -fexceptions -S -emit-llvm -o - %s | FileCheck %s
3 namespace std {
4 struct string {
5 const char *p;
6 string(const char *s);
7 ~string();
8 };
11 struct Bar {
12 int a;
15 struct Foo {
16 std::string c;
17 Bar d[32];
20 static Foo table[] = {
21 { "blerg" },
24 // CHECK: define internal void @__cxx_global_var_init
25 // CHECK: invoke {{.*}} @_ZNSt6stringC1EPKc(
26 // CHECK-NOT: unreachable
27 // CHECK: br label