test the parser only, not sema.

llvm-svn: 41395
This commit is contained in:
Chris Lattner 2007-08-25 05:26:51 +00:00
parent 6114751544
commit a206358bb6
1 changed files with 2 additions and 4 deletions

View File

@ -1,13 +1,11 @@
// RUN: clang -fsyntax-only %s
// XFAIL: *
// FIXME: This is xfailed because we're not analyzing brace initializers yet.
// RUN: clang -parse-noop %s
void test1() {
if (sizeof (int){ 1}); // sizeof compound literal
if (sizeof (int)); // sizeof type
(int)4; // cast.
(int){4}; // compound literal.
//(int){4}; // compound literal.
// FIXME: change this to the struct version when we can.
//int A = (struct{ int a;}){ 1}.a;