view clang/test/Parser/sizeof-missing-parens.c @ 236:c4bab56944e8 llvm-original

LLVM 16
author kono
date Wed, 09 Nov 2022 17:45:10 +0900
parents 79ff65ed7e25
children
line wrap: on
line source

// 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}}
}