diff options
Diffstat (limited to 'clang/test/SemaCXX/ast-print.cpp')
| -rw-r--r-- | clang/test/SemaCXX/ast-print.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/clang/test/SemaCXX/ast-print.cpp b/clang/test/SemaCXX/ast-print.cpp index 39a52ab8d7e..733931803b4 100644 --- a/clang/test/SemaCXX/ast-print.cpp +++ b/clang/test/SemaCXX/ast-print.cpp @@ -227,3 +227,12 @@ template <typename T> struct Foo : T { using T::operator-; }; } + +namespace dont_crash { +struct T { enum E {X = 12ll }; }; +struct S { + struct { int I; } ADecl; + static const auto Y = T::X; +}; +//CHECK: static const auto Y = T::X; +} |

