This website requires JavaScript.
Explore
Help
Sign In
maxjhandsome
/
llvm-project
forked from
OSchip/llvm-project
Watch
1
Star
0
Fork
You've already forked llvm-project
0
Code
Issues
Pull Requests
Packages
Releases
Wiki
Activity
2adc9e739c
llvm-project
/
clang
/
test
/
Parser
/
compound_literal.c
6 lines
98 B
C
Raw
Normal View
History
Unescape
Escape
Rename clang to clang-cc. Tests and drivers updated, still need to shuffle dirs. llvm-svn: 67602
2009-03-24 10:24:46 +08:00
// RUN: clang-cc -fsyntax-only -verify %s
Work towards fixing crasher with compound literals... Before this commit, we crashed in ParseBinOp... [dylan:~/llvm/tools/clang] admin% ../../Debug/bin/clang -parse-ast-check compound_literal.c SemaExpr.cpp:1298: failed assertion `(rhs != 0) && "ParseBinOp(): missing right expression"' With this commit, we still crash in the newly added action ParseCompoundLiteral (which is progress:-) [dylan:~/llvm/tools/clang] admin% ../../Debug/bin/clang -parse-ast-check compound_literal.c SemaExpr.cpp:478: failed assertion `(Op != 0) && "ParseCompoundLiteral(): missing expression"' The crash go away once the actions return AST nodes. I will do this in a separate commit. llvm-svn: 40032
2007-07-19 09:06:55 +08:00
int
main
(
)
{
char
*
s
;
s
=
(
char
[
]
)
{
"
whatever
"
}
;
}