diff options
Diffstat (limited to 'offload/test/offloading/assert.cpp')
| -rw-r--r-- | offload/test/offloading/assert.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/offload/test/offloading/assert.cpp b/offload/test/offloading/assert.cpp new file mode 100644 index 000000000000..07716f457e08 --- /dev/null +++ b/offload/test/offloading/assert.cpp @@ -0,0 +1,9 @@ +// RUN: %libomptarget-compilexx-generic && %libomptarget-run-fail-generic +// RUN: %libomptarget-compileoptxx-generic && %libomptarget-run-fail-generic + +int main(int argc, char *argv[]) { +#pragma omp target + { __builtin_trap(); } + + return 0; +} |
