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
7char BigUninitializedBuffer[4096 * 64] __attribute__((loader_uninitialized));
8#pragma omp end declare target
9
10int main() {
11#pragma omp target
12 {}
13}
14

source code of offload/test/offloading/bug74582.c