aboutsummaryrefslogtreecommitdiff
path: root/offload/test/offloading/bug74582.c
blob: c6a283bb936914370e306ee5485d366a0c966017 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// RUN: %libomptarget-compile-generic && %libomptarget-run-generic
// RUN: %libomptarget-compileopt-generic && %libomptarget-run-generic

// Verify we do not read bits in the image that are not there (nobits section).

#pragma omp begin declare target
char BigUninitializedBuffer[4096 * 64] __attribute__((loader_uninitialized));
#pragma omp end declare target

int main() {
#pragma omp target
  {}
}