opnsense-src/test/SemaCXX/static-initializers.cpp
2009-10-14 18:03:49 +00:00

10 lines
125 B
C++

// RUN: clang-cc -fsyntax-only -verify %s
int f() {
return 10;
}
void g() {
static int a = f();
}
static int b = f();