[clang] Handle __declspec() attributes in using
[llvm-project.git] / clang / test / AST / attr-annotate-type.c
blob115fd5912d75b928ee83247ea338ae6637727733
1 // RUN: %clang_cc1 %s -ast-dump -fdouble-square-bracket-attributes | 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;