Sign in
llvm
/
clang
/
a5728872c7702ddd09537c95bc3cbd20e1f2fb09
/
.
/
test
/
CodeGenCXX
/
extern-c.cpp
blob: 427a45aebb1ecebb9d6e8340ae24f87c1d29b450 [
file
] [
log
] [
blame
]
// RUN: %clang_cc1 -emit-llvm %s -o %t
namespace
foo
{
// RUN: not grep "@a = global i32" %t
extern
"C"
int
a
;
// RUN: not grep "@_ZN3foo1bE = global i32" %t
extern
int
b
;
// RUN: grep "@_ZN3foo1cE = global i32" %t | count 1
int
c
=
5
;
}