diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/Tooling/clang-check-ast-dump.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/Tooling/clang-check-ast-dump.cpp b/test/Tooling/clang-check-ast-dump.cpp index 28dcc6eaa8..43686bd250 100644 --- a/test/Tooling/clang-check-ast-dump.cpp +++ b/test/Tooling/clang-check-ast-dump.cpp @@ -26,6 +26,9 @@ // 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 +// +// RUN: clang-check -ast-dump -ast-dump-filter test_namespace::AfterNullNode "%s" -- 2>&1 | FileCheck -check-prefix CHECK-AFTER-NULL %s +// CHECK-AFTER-NULL: class AfterNullNode namespace test_namespace { @@ -40,4 +43,7 @@ public: // Used to fail with -ast-dump-filter X template<template<typename T> class C> class Z {}; +// Check that traversal continues after the previous construct. +class AfterNullNode {}; + } |