freebsd-dev/test/SemaCXX/static-initializers.cpp
2009-06-02 17:58:47 +00:00

13 lines
123 B
C++

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