diff options
author | Olivier Goffart <ogoffart@woboq.com> | 2016-11-04 12:04:16 +0000 |
---|---|---|
committer | Olivier Goffart <ogoffart@woboq.com> | 2016-11-04 12:04:16 +0000 |
commit | 050f958519c8c3d825c27777c0bd6c6df58798d9 (patch) | |
tree | 6b5e7a69e756667e864860570f485dd7b092ab7b | |
parent | 9321e208e8b40c813ed0a0e06e53c8123b3769af (diff) | |
download | bcm5719-llvm-050f958519c8c3d825c27777c0bd6c6df58798d9.tar.gz bcm5719-llvm-050f958519c8c3d825c27777c0bd6c6df58798d9.zip |
[test] Test that static_assert is properly visited in liblcang
llvm-svn: 285994
-rw-r--r-- | clang/test/Index/load-staticassert.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/clang/test/Index/load-staticassert.cpp b/clang/test/Index/load-staticassert.cpp new file mode 100644 index 00000000000..04e45c2d747 --- /dev/null +++ b/clang/test/Index/load-staticassert.cpp @@ -0,0 +1,11 @@ + +static_assert(2 + 2 == 4, "Simple maths"); + +// RUN: c-index-test -test-load-source all -fno-delayed-template-parsing -std=c++11 %s | FileCheck %s +// CHECK: load-staticassert.cpp:2:1: StaticAssert=:2:1 (Definition) Extent=[2:1 - 2:42] +// CHECK: load-staticassert.cpp:2:15: BinaryOperator= Extent=[2:15 - 2:25] +// CHECK: load-staticassert.cpp:2:15: BinaryOperator= Extent=[2:15 - 2:20] +// CHECK: load-staticassert.cpp:2:15: IntegerLiteral= Extent=[2:15 - 2:16] +// CHECK: load-staticassert.cpp:2:19: IntegerLiteral= Extent=[2:19 - 2:20] +// CHECK: load-staticassert.cpp:2:24: IntegerLiteral= Extent=[2:24 - 2:25] +// CHECK: load-staticassert.cpp:2:27: StringLiteral="Simple maths" Extent=[2:27 - 2:41] |