summaryrefslogtreecommitdiff
path: root/test/InterfaceStubs/object.c
blob: e81b82754e5798e1f890e366d700627f1c20407c (plain)
1
2
3
4
5
6
7
// RUN: %clang -fvisibility=default -c -o - -emit-interface-stubs %s | FileCheck -check-prefix=CHECK-TAPI %s
// RUN: %clang -fvisibility=default -c -o - -emit-interface-stubs %s | FileCheck -check-prefix=CHECK-SYMBOLS %s
// RUN: %clang -fvisibility=default -c -o - %s | llvm-nm - 2>&1 | FileCheck -check-prefix=CHECK-SYMBOLS %s

// CHECK-TAPI: data" : { Type: Object, Size: 4 }
// CHECK-SYMBOLS: data
int data = 42;