summaryrefslogtreecommitdiffstats
path: root/test/Tooling/clang-check-ast-dump.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/Tooling/clang-check-ast-dump.cpp')
-rw-r--r--test/Tooling/clang-check-ast-dump.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/Tooling/clang-check-ast-dump.cpp b/test/Tooling/clang-check-ast-dump.cpp
index 86533af..e29072b 100644
--- a/test/Tooling/clang-check-ast-dump.cpp
+++ b/test/Tooling/clang-check-ast-dump.cpp
@@ -22,6 +22,10 @@
// CHECK-LIST-NEXT: test_namespace::TheClass
// CHECK-LIST-NEXT: test_namespace::TheClass::theMethod
// CHECK-LIST-NEXT: x
+//
+// RUN: clang-check -ast-dump -ast-dump-filter test_namespace::TheClass::n "%s" -- 2>&1 | FileCheck -check-prefix CHECK-ATTR %s
+// CHECK-ATTR: test_namespace
+// CHECK-ATTR-NEXT: int n __attribute__((aligned((BinaryOperator
namespace test_namespace {
@@ -30,6 +34,7 @@ public:
int theMethod(int x) {
return x + x;
}
+ int n __attribute__((aligned(1+1)));
};
}
OpenPOWER on IntegriCloud