| 154 | } |
| 155 | |
| 156 | void breakStmt() { |
| 157 | const char clang[] = "`-FunctionDecl 0x2c31b18 <1.c:1:1, col:34> col:6 foo 'void ()'\n" |
| 158 | " `-CompoundStmt 0x2c31c40 <col:12, col:34>\n" |
| 159 | " `-WhileStmt 0x2c31c20 <col:14, col:24>\n" |
| 160 | " |-<<<NULL>>>\n" |
| 161 | " |-IntegerLiteral 0x2c31bf8 <col:21> 'int' 0\n" |
| 162 | " `-BreakStmt 0x3687c18 <col:24>"; |
| 163 | ASSERT_EQUALS("void foo ( ) { while ( 0 ) { break ; } }", parse(clang)); |
| 164 | } |
| 165 | |
| 166 | void callExpr() { |
| 167 | const char clang[] = "`-FunctionDecl 0x2444b60 <1.c:1:1, line:8:1> line:1:6 foo 'void (int)'\n" |