| 1 |
// RUN: %clang_cc1 %s -ast-dump | FileCheck %s |
| 2 |
|
| 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. |
| 6 |
|
| 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; |