clang/test/OpenMP/target_unknown_file.cpp
raw| 1 | // RUN: %clang_cc1 -verify -fopenmp -triple x86_64-apple-darwin10.6.0 -emit-llvm -o - %s 2>&1 | FileCheck %s |
| 2 | // expected-no-diagnostics |
| 3 | |
| 4 | // CHECK-NOT: fatal error: cannot open file |
| 5 | |
| 6 | // CHECK: call void @__omp_offloading_{{.+}}() |
| 7 | # 1 "unknown.xxxxxxxx" |
| 8 | void a() { |
| 9 | #pragma omp target |
| 10 | ; |
| 11 | } |
| 12 | |
| 13 | // CHECK-NOT: fatal error: cannot open file |