xref: /llvm-project/offload/test/offloading/bug74582.c (revision 330d8983d25d08580fc1642fea48b2473f47a9da)
1 // RUN: %libomptarget-compile-generic && %libomptarget-run-generic
2 // RUN: %libomptarget-compileopt-generic && %libomptarget-run-generic
3 
4 // Verify we do not read bits in the image that are not there (nobits section).
5 
6 #pragma omp begin declare target
7 char BigUninitializedBuffer[4096 * 64] __attribute__((loader_uninitialized));
8 #pragma omp end declare target
9 
main()10 int main() {
11 #pragma omp target
12   {}
13 }
14