// RUN: %clang_cc1 -fopenmp -x c++ -triple powerpc64le-unknown-unknown \
// RUN: -verify=host -fopenmp-targets=nvptx64-nvidia-cuda -emit-llvm-bc \
// RUN: %s -o %t-ppc-host.bc -fexceptions -fcxx-exceptions
// RUN: %clang_cc1 -verify -fopenmp -x c++ -triple nvptx64-unknown-unknown \
// RUN: -fopenmp-targets=nvptx64-nvidia-cuda -emit-llvm %s \
// RUN: -fopenmp-is-device -fopenmp-host-ir-file-path %t-ppc-host.bc -o - \
// RUN: -fexceptions -fcxx-exceptions -ferror-limit 100
;
int ;
int ;
int ;
int
T
;
int
int b = 15;
int d;
int c;
int // expected-note {{called by 'bar'}}
int
int
int
int // expected-error {{cannot use 'throw' with exceptions disabled}}
int ;
int ;
int = &foobar1;
int = &foobar2;
int
int // expected-error {{cannot use 'throw' with exceptions disabled}}
int ;
int = &foobar3; // expected-warning {{declaration is not declared in any declare target region}}
// host-warning@-1 {{declaration is not declared in any declare target region}}
int = C; // expected-note {{used here}}
// host-note@-1 {{used here}}
int
// Check no infinite recursion in deferred diagnostic emitter.
long E = &E;
// HEADER