aboutsummaryrefslogtreecommitdiff
path: root/clang/test/Parser/sizeof-missing-parens.c
blob: 8f7f728354b60edb6f2a4328a566abb77d9e2846 (plain)
1
2
3
4
5
6
7
8
9
10
// RUN: %clang_cc1 -fsyntax-only -verify %s

void Foo(int);

#define Bar(x) Foo(x)

void Baz(void) {
  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}}
}