diff options
| author | Manuel Klimek <klimek@google.com> | 2017-07-17 15:27:53 +0000 |
|---|---|---|
| committer | Manuel Klimek <klimek@google.com> | 2017-07-17 15:27:53 +0000 |
| commit | 06b575ca818075d9e1832158edb5186943fc21a4 (patch) | |
| tree | ae769b6cad09e3fbca42a4d4a89e9f5e85f74899 /clang/unittests/Format/FormatTest.cpp | |
| parent | 8d0ecbedbe834141bf673d50c42fe76f75cda4bf (diff) | |
| download | bcm5719-llvm-06b575ca818075d9e1832158edb5186943fc21a4.tar.gz bcm5719-llvm-06b575ca818075d9e1832158edb5186943fc21a4.zip | |
Fix dereference of pointers in throw statements.
Before:
throw * x;
After:
throw *x;
Patch by Erik Uhlmann.
llvm-svn: 308185
Diffstat (limited to 'clang/unittests/Format/FormatTest.cpp')
| -rw-r--r-- | clang/unittests/Format/FormatTest.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/unittests/Format/FormatTest.cpp b/clang/unittests/Format/FormatTest.cpp index eb7bcc1ed8f..f533ebf2234 100644 --- a/clang/unittests/Format/FormatTest.cpp +++ b/clang/unittests/Format/FormatTest.cpp @@ -5350,6 +5350,7 @@ TEST_F(FormatTest, UnderstandsUsesOfStarAndAmp) { verifyFormat("x = *a(x) = *a(y);", Left); verifyFormat("for (;; *a = b) {\n}", Left); verifyFormat("return *this += 1;", Left); + verifyFormat("throw *x;", Left); verifyIndependentOfContext("a = *(x + y);"); verifyIndependentOfContext("a = &(x + y);"); |

