2010-01-01 10:34:51 +00:00
|
|
|
// RUN: %clang_cc1 -emit-llvm %s -o %t
|
2009-06-02 17:58:47 +00:00
|
|
|
namespace foo {
|
|
|
|
|
2009-11-18 14:59:57 +00:00
|
|
|
// RUN: not grep "@a = global i32" %t
|
2009-06-02 17:58:47 +00:00
|
|
|
extern "C" int a;
|
|
|
|
|
2009-11-18 14:59:57 +00:00
|
|
|
// RUN: not grep "@_ZN3foo1bE = global i32" %t
|
2009-06-02 17:58:47 +00:00
|
|
|
extern int b;
|
|
|
|
|
|
|
|
// RUN: grep "@_ZN3foo1cE = global i32" %t | count 1
|
|
|
|
int c = 5;
|
|
|
|
|
2010-02-16 09:31:36 +00:00
|
|
|
// RUN: not grep "@_ZN3foo1dE" %t
|
|
|
|
extern "C" struct d;
|
|
|
|
|
2009-06-02 17:58:47 +00:00
|
|
|
}
|