Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
fp2-dev
/
platform
/
external
/
clang
/
9f75e6be16b9df33d58ec73955b3e3e3c71b2682
/
.
/
test
/
CodeGenCXX
/
extern-c.cpp
blob: 635329323354ad07a7e75265b8ab5eacaf9ad824 [
file
] [
log
] [
blame
]
// RUN: clang-cc -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
;
}