Daniel Dunbar | d7d5f02 | 2009-03-24 02:24:46 +0000 | [diff] [blame^] | 1 | // RUN: clang-cc -fsyntax-only -verify %s |
Anders Carlsson | c5eb731 | 2008-08-22 05:00:02 +0000 | [diff] [blame] | 2 | int f() |
3 | { | ||||
4 | return 10; | ||||
5 | } | ||||
6 | |||||
7 | void g() | ||||
8 | { | ||||
9 | static int a = f(); | ||||
10 | } | ||||
11 | |||||
12 | static int b = f(); |