extern-c.cpp revision a5728872c7702ddd09537c95bc3cbd20e1f2fb09
1// RUN: %clang_cc1 -emit-llvm %s -o %t 2namespace foo { 3 4// RUN: not grep "@a = global i32" %t 5extern "C" int a; 6 7// RUN: not grep "@_ZN3foo1bE = global i32" %t 8extern int b; 9 10// RUN: grep "@_ZN3foo1cE = global i32" %t | count 1 11int c = 5; 12 13} 14