brintos

brintos / llvm-project-archived public Read only

0
0
Text · 548 B · 4aa0b16 Raw
13 lines · c
1// RUN: %clang_cc1 %s -ast-dump | FileCheck %s2 3// Verify that we print the [[clang::annotate_type]] attribute.4// FIXME: The arguments are currently not printed -- see also comments in5// TypePrinter.cpp.6 7// Need to escape the `[[` as a regex to avoid it being interpreted as a8// substitution block.9// CHECK: VarDecl {{.*}} x1 'int {{\[\[}}clang::annotate_type(...){{]]}}':'int'10int [[clang::annotate_type("bar")]] x1;11// CHECK: VarDecl {{.*}} x2 'int * {{\[\[}}clang::annotate_type(...){{]]}}':'int *'12int *[[clang::annotate_type("bar")]] x2;13