diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2019-05-06 04:07:30 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2019-05-06 04:07:30 +0000 |
commit | 2981921ab5a5de36ec4c4e8cc8da0b62953ddbf2 (patch) | |
tree | 1f69b2abeb43543b74d56ae1f9ad06a880b7073b | |
parent | 9c3a58eec9fe3d7cfb5598abd1345fa7da04fc9c (diff) |
Fix test to avoid assuming clang will diagnose problems in unreachable code.
git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@360009 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | clangd/unittests/DiagnosticsTests.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/clangd/unittests/DiagnosticsTests.cpp b/clangd/unittests/DiagnosticsTests.cpp index ed12897e..301fe094 100644 --- a/clangd/unittests/DiagnosticsTests.cpp +++ b/clangd/unittests/DiagnosticsTests.cpp @@ -171,6 +171,8 @@ TEST(DiagnosticsTest, ClangTidy) { #define $macrodef[[SQUARE]](X) (X)*(X) int main() { return $doubled[[sizeof]](sizeof(int)); + } + int square() { int y = 4; return SQUARE($macroarg[[++]]y); } |