mirror of
https://github.com/intel/llvm.git
synced 2026-01-26 20:23:39 +08:00
[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:
5
clang/test/OpenMP/aux-triple-macros.cpp
Normal file
5
clang/test/OpenMP/aux-triple-macros.cpp
Normal 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
|
||||
Reference in New Issue
Block a user