[flang][cuda] Adapt ExternalNameConversion to work in gpu module (#117039)
[llvm-project.git] / clang / test / AST / attr-annotate-type.c
blob4aa0b1618b719d6708b5efb9c8439ac129b2bef4
1 // RUN: %clang_cc1 %s -ast-dump | FileCheck %s
3 // Verify that we print the [[clang::annotate_type]] attribute.
4 // FIXME: The arguments are currently not printed -- see also comments in
5 // TypePrinter.cpp.
7 // Need to escape the `[[` as a regex to avoid it being interpreted as a
8 // substitution block.
9 // CHECK: VarDecl {{.*}} x1 'int {{\[\[}}clang::annotate_type(...){{]]}}':'int'
10 int [[clang::annotate_type("bar")]] x1;
11 // CHECK: VarDecl {{.*}} x2 'int * {{\[\[}}clang::annotate_type(...){{]]}}':'int *'
12 int *[[clang::annotate_type("bar")]] x2;