brintos

brintos / llvm-project-archived public Read only

0
0
Text · 336 B · 4730c10 Raw
12 lines · cpp
1// RUN: %clang_cc1 -verify -fopenmp %s2 3// RUN: %clang_cc1 -verify -fopenmp-simd %s4// SIMD-ONLY0-NOT: {{__kmpc|__tgt}}5void f(int a, ...) {6#pragma omp parallel for7  for (int i = 0; i < 100; ++i) {8    __builtin_va_list ap;9    __builtin_va_start(ap, a); // expected-error {{'va_start' cannot be used in a captured statement}}10  }11};12