llvm-project/clang/test/OpenMP/target_unknown_file.cpp
Joseph Huber 154a128c65 Reapply "[OpenMP] Move OpenMP implicit argument to the end and reformat" (#186309)
Should be working downstream now
This reverts commit 9b61ff210fdff752d5db55b128474e9990258488.
2026-03-13 15:48:37 -05:00

14 lines
341 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_{{.+}}(ptr null)
# 1 "unknown.xxxxxxxx"
void a() {
#pragma omp target
;
}
// CHECK-NOT: fatal error: cannot open file