2010-01-01 05:34:51 -05:00
|
|
|
// RUN: %clang_cc1 -fsyntax-only -verify %s
|
2009-10-14 14:03:49 -04:00
|
|
|
int f() {
|
|
|
|
|
return 10;
|
2009-06-02 13:58:47 -04:00
|
|
|
}
|
|
|
|
|
|
2009-10-14 14:03:49 -04:00
|
|
|
void g() {
|
|
|
|
|
static int a = f();
|
2009-06-02 13:58:47 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
static int b = f();
|