diff --git a/clang/test/OpenMP/aux-triple-macros.cpp b/clang/test/OpenMP/aux-triple-macros.cpp new file mode 100644 --- /dev/null +++ b/clang/test/OpenMP/aux-triple-macros.cpp @@ -0,0 +1,5 @@ +// RUN: %clang_cc1 %s -triple nvptx64 -aux-triple x86_64-unknown-linux-gnu -E -dM | FileCheck %s +// RUN: %clang_cc1 %s -fopenmp -fopenmp-is-device -triple nvptx64 -aux-triple x86_64-unknown-linux-gnu -E -dM | FileCheck --check-prefix=CHECK-OMP-DEVICE %s + +// CHECK-NOT:#define __x86_64__ 1 +// CHECK-OMP-DEVICE:#define __x86_64__ 1