llvm-for-llvmta/tools/clang/test/Sema/init-ref-c.c

7 lines
302 B
C
Raw Normal View History

2022-04-25 13:02:35 +02:00
// RUN: %clang_cc1 -triple arm-unknown-gnu -fsyntax-only -verify %s
void f() {
struct EmptyStruct {};
struct EmptyStruct S;
__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'}}
}