[OpenMP][Test] Add check for aux-triple predefined macros

Summary:
Make sure that auxiliary target specific macros are defined in OpenMP
mode.

Reviewers: ABataev, jdoerfert

Subscribers: guansong, ebevhan, cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D71413
This commit is contained in:
Alexey Bader 2019-12-12 12:52:28 +03:00
parent 1274ac3dc2
commit 2d6a5e4fe4

View file

@ -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