xref: /llvm-project/clang/test/CodeCompletion/enable-if-attr-crash.cpp (revision cf9b25e0adc42546e4dc5ff51ee8674d45bac26b)
1 int foo(bool x) __attribute__((enable_if(x, "")));
2 
test()3 int test() {
4   bool fffffff;
5   // RUN: %clang_cc1 -std=c++11 -code-completion-at=%s:%(line+2):8 %s | FileCheck %s
6   // CHECK: COMPLETION: fffffff : [#bool#]fffffff
7   foo(ff
8 }
9