aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGenCXX/extern-c.cpp
blob: 3af8f3adb54f6ffb5d5f0b35543ca0c593526487 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// 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;

}