diff options
Diffstat (limited to 'clang/test/Index/target-info.c')
-rw-r--r-- | clang/test/Index/target-info.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/test/Index/target-info.c b/clang/test/Index/target-info.c new file mode 100644 index 00000000000..98a3ca32b57 --- /dev/null +++ b/clang/test/Index/target-info.c @@ -0,0 +1,6 @@ +// RUN: c-index-test -test-print-target-info %s --target=i386-unknown-linux-gnu | FileCheck %s +// RUN: c-index-test -test-print-target-info %s --target=x86_64-unknown-linux-gnu | FileCheck --check-prefix=CHECK-1 %s +// CHECK: TargetTriple: i386-unknown-linux-gnu +// CHECK: PointerWidth: 32 +// CHECK-1: TargetTriple: x86_64-unknown-linux-gnu +// CHECK-1: PointerWidth: 64 |