brintos

brintos / llvm-project-archived public Read only

0
0
Text · 207 B · ca1b623 Raw
10 lines · cpp
1// RUN: %clang_cc1 %s -fopenacc -verify2 3void foo() {4  switch (int x = 0) {5    case 0:6#pragma acc parallel7      break; // expected-error{{invalid branch out of OpenACC Compute/Combined Construct}}8  }9}10