diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2018-07-28 11:06:01 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2018-07-28 11:06:01 +0000 |
commit | 486754660bb926339aefcf012a3f848592babb8b (patch) | |
tree | ecdbc446c9876f4f120f701c243373cd3cb43db3 /test/CodeCompletion/enable-if-attr-crash.cpp | |
parent | 55e6d896ad333f07bb3b1ba487df214fc268a4ab (diff) | |
download | src-e840ccaca250d542d229ef559f5dbc4689265313.tar.gz src-e840ccaca250d542d229ef559f5dbc4689265313.zip |
Vendor import of clang trunk r338150:vendor/clang/clang-trunk-r338150
Diffstat (limited to 'test/CodeCompletion/enable-if-attr-crash.cpp')
-rw-r--r-- | test/CodeCompletion/enable-if-attr-crash.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/CodeCompletion/enable-if-attr-crash.cpp b/test/CodeCompletion/enable-if-attr-crash.cpp new file mode 100644 index 000000000000..cca84b28ecfb --- /dev/null +++ b/test/CodeCompletion/enable-if-attr-crash.cpp @@ -0,0 +1,8 @@ +int foo(bool x) __attribute__((enable_if(x, ""))); + +int test() { + bool fffffff; + // RUN: %clang_cc1 -std=c++11 -code-completion-at=%s:7:8 %s | FileCheck %s + // CHECK: COMPLETION: fffffff : [#bool#]fffffff + foo(ff +} |