mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-26 22:56:05 +00:00

If the file in line directive does not exist on the system we need, to use the original file to get its file id. Differential Revision: https://reviews.llvm.org/D97945
14 lines
333 B
C++
14 lines
333 B
C++
// RUN: %clang_cc1 -verify -fopenmp -triple x86_64-apple-darwin10.6.0 -emit-llvm -o - %s 2>&1 | FileCheck %s
|
|
// expected-no-diagnostics
|
|
|
|
// CHECK-NOT: fatal error: cannot open file
|
|
|
|
// CHECK: call void @__omp_offloading_{{.+}}()
|
|
# 1 "unknown.xxxxxxxx"
|
|
void a() {
|
|
#pragma omp target
|
|
;
|
|
}
|
|
|
|
// CHECK-NOT: fatal error: cannot open file
|