brintos

brintos / llvm-project-archived public Read only

0
0
Text · 571 B · 113ece4 Raw
26 lines · cpp
1// RUN: rm -fR %t2// RUN: split-file %s %t3// RUN: cd %t4// RUN: %clang_cc1 -std=c++20 -emit-header-unit -xc++-user-header h1.h5// RUN: %clang_cc1 -std=c++20 -emit-header-unit -xc++-user-header h2.h -fmodule-file=h1.pcm6// RUN: %clang_cc1 -std=c++20 -fsyntax-only main.cpp -fmodule-file=h1.pcm -fmodule-file=h2.pcm7 8//--- h1.h9#include <stdarg.h>10// expected-no-diagnostics11 12//--- h2.h13import "h1.h";14// expected-no-diagnostics15 16//--- main.cpp17import "h1.h";18import "h2.h";19 20void foo(int x, ...) {21  va_list v;22  va_start(v, x);23  va_end(v);24}25// expected-no-diagnostics26