opnsense-src/test/CodeGenCXX/extern-c.cpp

17 lines
298 B
C++
Raw Normal View History

2010-01-01 05:34:51 -05:00
// RUN: %clang_cc1 -emit-llvm %s -o %t
2009-06-02 13:58:47 -04:00
namespace foo {
2009-11-18 09:59:57 -05:00
// RUN: not grep "@a = global i32" %t
2009-06-02 13:58:47 -04:00
extern "C" int a;
2009-11-18 09:59:57 -05:00
// RUN: not grep "@_ZN3foo1bE = global i32" %t
2009-06-02 13:58:47 -04:00
extern int b;
// RUN: grep "@_ZN3foo1cE = global i32" %t | count 1
int c = 5;
2010-02-16 04:31:36 -05:00
// RUN: not grep "@_ZN3foo1dE" %t
extern "C" struct d;
2009-06-02 13:58:47 -04:00
}