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 | 9359793849d473e257cc7b050e2dbe65072c15ac (patch) | |
tree | 7745d8e9c2aa5d8611eae86d2a95487bb02549f9 /unittests | |
parent | e145b58944660392991fb9dc7993938d5a33e206 (diff) |
Fix dereference of pointers in throw statements.
Before:
throw * x;
After:
throw *x;
Patch by Erik Uhlmann.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@308185 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests')
-rw-r--r-- | unittests/Format/FormatTest.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/unittests/Format/FormatTest.cpp b/unittests/Format/FormatTest.cpp index eb7bcc1ed8..f533ebf223 100644 --- a/unittests/Format/FormatTest.cpp +++ b/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);"); |