1b9c746034
This reverts commit 46efdf2ccc2a80aefebf8433dbf9c7c959f6e629. Richard Smith commented just after I submitted this that this is the wrong solution. Reverting so that I can fix differently. llvm-svn: 349206
13 lines
500 B
C++
13 lines
500 B
C++
// RUN: not %clang_cc1 -triple %ms_abi_triple -ast-print %s -std=gnu++11 \
|
|
// RUN: | FileCheck %s
|
|
|
|
// The test compiles a file with a syntax error which used to cause a crash with
|
|
// -ast-print. Compilation fails due to the syntax error, but compiler should
|
|
// not crash and print out whatever it manager to parse.
|
|
|
|
// CHECK: struct {
|
|
// CHECK-NEXT: } dont_crash_on_syntax_error;
|
|
// CHECK-NEXT: decltype(nullptr) p;
|
|
struct {
|
|
} dont_crash_on_syntax_error /* missing ; */ decltype(nullptr) p;
|