summaryrefslogtreecommitdiffstats
path: root/clang/test/Parser
diff options
context:
space:
mode:
authorTyker <tyker1@outlook.com>2020-01-04 00:14:17 +0100
committerTyker <tyker1@outlook.com>2020-01-04 01:41:21 +0100
commitc4766cadcb38172c2843d65559060e0ae623b6eb (patch)
treefda3c49545ecb537487b2f3f9cfdfbf3f34e1364 /clang/test/Parser
parenta61a6323dd158b24dc2c84915445c9d5704164cb (diff)
downloadbcm5719-llvm-c4766cadcb38172c2843d65559060e0ae623b6eb.tar.gz
bcm5719-llvm-c4766cadcb38172c2843d65559060e0ae623b6eb.zip
[Diagnostic] Add test for previous b4b904e19bb356724b2c6aea0199ce05c6f15cdb
Diffstat (limited to 'clang/test/Parser')
-rw-r--r--clang/test/Parser/warn-misleading-indentation-fix.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/test/Parser/warn-misleading-indentation-fix.cpp b/clang/test/Parser/warn-misleading-indentation-fix.cpp
new file mode 100644
index 00000000000..bb84d5337a9
--- /dev/null
+++ b/clang/test/Parser/warn-misleading-indentation-fix.cpp
@@ -0,0 +1,3 @@
+int main(void) { for( int i = 0; i < 9; i++ ); return 0; }
+// the crash only occurs on the first line don't move it.
+// RUN: %clang_cc1 -x c -fsyntax-only -Wmisleading-indentation %s
OpenPOWER on IntegriCloud