Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / OpenMP / varargs.cpp
blob4730c1025d3245be070847f0dd5af484586234c9
1 // RUN: %clang_cc1 -verify -fopenmp %s
3 // RUN: %clang_cc1 -verify -fopenmp-simd %s
4 // SIMD-ONLY0-NOT: {{__kmpc|__tgt}}
5 void f(int a, ...) {
6 #pragma omp parallel for
7 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}}