Teach TreeTransform how to transform a pack expansion type into
[clang.git] / test / CodeGenCXX / static-local-in-local-class.cpp
blobebf560ab9805d37aa8c2a47f14e940bc19b8dd5e
1 // RUN: %clang_cc1 -emit-llvm -o %t %s
2 // PR6769
4 struct X {
5 static void f();
6 };
8 void X::f() {
9 static int *i;
11 struct Y {
12 static void g() {
13 i = new int();
14 *i = 100;
15 (*i) = (*i) +1;
18 (void)Y::g();
20 (void)i;
23 // pr7101
24 void foo() {
25 static int n = 0;
26 struct Helper {
27 static void Execute() {
28 n++;
31 Helper::Execute();