YouCompleteMe/cpp/llvm/tools/clang/test/CodeGenCXX/extern-c.cpp
Strahinja Val Markovic 1f51a89d39 Adding more llvm/clang files
These were ignored by git accidentally. We want ALL OF THEM since they all came
in the llvm/clang source distribution.
2012-07-05 17:55:45 -07:00

17 lines
298 B
C++

// 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;
// RUN: not grep "@_ZN3foo1dE" %t
extern "C" struct d;
}