mirror of
https://github.com/opnsense/src.git
synced 2026-03-03 13:51:30 -05:00
14 lines
249 B
C++
14 lines
249 B
C++
|
|
// 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;
|
||
|
|
|
||
|
|
}
|