xref: /llvm-project/clang/test/Sema/init-ref-c.c (revision 8c5edb59cf487373e545ccb87ffcd24cb7d0d0ec)
1 // RUN: %clang_cc1 -triple arm-unknown-gnu -fsyntax-only -verify %s
2 
f(void)3 void f(void) {
4   struct EmptyStruct {};
5   struct EmptyStruct S;
6   __builtin_va_end(S); // no-crash, expected-error {{non-const lvalue reference to type '__builtin_va_list' cannot bind to a value of unrelated type 'struct EmptyStruct'}}
7 }