llvm-project/clang/test/Index/index-concept-kind.cpp
Jake Egan be3fc66f83 Revert "[clang][test] mark tests added in ee8524087c78 as unsupported on AIX"
The tests pass now on a clean build.

This reverts commit 1b34f1e996565bc5e4f2be14b89f881f8fe0f3b9.
2022-05-30 09:35:26 -04:00

10 lines
734 B
C++

// RUN: c-index-test -index-file %s -std=gnu++20 | FileCheck %s
template <typename T>
concept LargeType = sizeof(T) > 8;
// CHECK: [indexDeclaration]: kind: concept | name: LargeType | USR: c:@CT@LargeType | lang: C | cursor: ConceptDecl=LargeType:[[@LINE-1]]:9 (Definition) | loc: [[@LINE-1]]:9 | semantic-container: [TU] | lexical-container: [TU] | isRedecl: 0 | isDef: 1 | isContainer: 0 | isImplicit: 0
template <LargeType T>
// CHECK: [indexEntityReference]: kind: concept | name: LargeType | USR: c:@CT@LargeType | lang: C | cursor: TemplateRef=LargeType:4:9 | loc: [[@LINE-1]]:11 | <parent>:: kind: function-template | name: f | USR: c:@FT@>1#Tf#v# | lang: C++ | container: [<<NULL>>] | refkind: direct | role: ref
void f();