2009-12-16 04:14:24 +08:00
|
|
|
// RUN: %clang_cc1 -emit-llvm %s -o %t
|
2009-05-17 05:02:39 +08:00
|
|
|
namespace foo {
|
|
|
|
|
2009-11-08 09:45:36 +08:00
|
|
|
// RUN: not grep "@a = global i32" %t
|
2009-05-17 05:02:39 +08:00
|
|
|
extern "C" int a;
|
|
|
|
|
2009-11-08 09:45:36 +08:00
|
|
|
// RUN: not grep "@_ZN3foo1bE = global i32" %t
|
2009-05-17 05:02:39 +08:00
|
|
|
extern int b;
|
|
|
|
|
|
|
|
// RUN: grep "@_ZN3foo1cE = global i32" %t | count 1
|
|
|
|
int c = 5;
|
|
|
|
|
2010-02-07 16:38:28 +08:00
|
|
|
// RUN: not grep "@_ZN3foo1dE" %t
|
|
|
|
extern "C" struct d;
|
|
|
|
|
2009-05-17 05:02:39 +08:00
|
|
|
}
|