blob: ca1b6234be72d254906973b03ecffa3b7e76c586 (
plain)
1
2
3
4
5
6
7
8
9
|
// RUN: %clang_cc1 %s -fopenacc -verify
void foo() {
switch (int x = 0) {
case 0:
#pragma acc parallel
break; // expected-error{{invalid branch out of OpenACC Compute/Combined Construct}}
}
}
|