summaryrefslogtreecommitdiff
path: root/test/InterfaceStubs/object.cpp
blob: 68b5ee781c904f98482b951b733f9f3c17049edb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// RUN: %clang -target x86_64-unknown-linux-gnu -o - -emit-interface-stubs \
// RUN: -interface-stub-version=experimental-tapi-elf-v1 %s | \
// RUN: FileCheck -check-prefix=CHECK-TAPI %s

// RUN: %clang -target x86_64-unknown-linux-gnu -o - -emit-interface-stubs \
// RUN: -interface-stub-version=experimental-tapi-elf-v1 %s | \
// RUN: FileCheck -check-prefix=CHECK-SYMBOLS %s
// RUN: %clang -target x86_64-unknown-linux-gnu -o - -c %s | llvm-nm - 2>&1 | \
// RUN: FileCheck -check-prefix=CHECK-SYMBOLS %s

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