| 1 | // RUN: %clang_cc1 -fsyntax-only -verify %s |
|---|---|
| 2 | // expected-no-diagnostics |
| 3 | int f() { |
| 4 | return 10; |
| 5 | } |
| 6 | |
| 7 | void g() { |
| 8 | static int a = f(); |
| 9 | } |
| 10 | |
| 11 | static int b = f(); |
| 12 |
| 1 | // RUN: %clang_cc1 -fsyntax-only -verify %s |
|---|---|
| 2 | // expected-no-diagnostics |
| 3 | int f() { |
| 4 | return 10; |
| 5 | } |
| 6 | |
| 7 | void g() { |
| 8 | static int a = f(); |
| 9 | } |
| 10 | |
| 11 | static int b = f(); |
| 12 |