Daniel Dunbar | a572887 | 2009-12-15 20:14:24 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -emit-llvm %s -o %t |
Anders Carlsson | 2928c21 | 2009-05-16 21:02:39 +0000 | [diff] [blame] | 2 | namespace foo { |
| 3 | |
Daniel Dunbar | 4fcfde4 | 2009-11-08 01:45:36 +0000 | [diff] [blame] | 4 | // RUN: not grep "@a = global i32" %t |
Anders Carlsson | 2928c21 | 2009-05-16 21:02:39 +0000 | [diff] [blame] | 5 | extern "C" int a; |
| 6 | |
Daniel Dunbar | 4fcfde4 | 2009-11-08 01:45:36 +0000 | [diff] [blame] | 7 | // RUN: not grep "@_ZN3foo1bE = global i32" %t |
Anders Carlsson | 2928c21 | 2009-05-16 21:02:39 +0000 | [diff] [blame] | 8 | extern int b; |
| 9 | |
| 10 | // RUN: grep "@_ZN3foo1cE = global i32" %t | count 1 |
| 11 | int c = 5; |
| 12 | |
| 13 | } |