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