mirror of
https://github.com/llvm/llvm-project.git
synced 2025-05-03 07:06:07 +00:00

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
6 lines
330 B
C++
6 lines
330 B
C++
// 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
|