freebsd-nq/test/SemaCXX/static-initializers.cpp
2010-01-01 10:34:51 +00:00

11 lines
127 B
C++

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