llvm-for-llvmta/tools/clang/test/Parser/sizeof-missing-parens.c

11 lines
299 B
C
Raw Normal View History

2022-04-25 13:02:35 +02:00
// RUN: %clang_cc1 -fsyntax-only -verify %s
void Foo(int);
#define Bar(x) Foo(x)
void Baz() {
Foo(sizeof int); // expected-error {{expected parentheses around type name in sizeof expression}}
Bar(sizeof int); // expected-error {{expected parentheses around type name in sizeof expression}}
}