diff options
Diffstat (limited to 'clang/test/SemaCXX/ast-print.cpp')
| -rw-r--r-- | clang/test/SemaCXX/ast-print.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/clang/test/SemaCXX/ast-print.cpp b/clang/test/SemaCXX/ast-print.cpp index 733931803b4..408af35c295 100644 --- a/clang/test/SemaCXX/ast-print.cpp +++ b/clang/test/SemaCXX/ast-print.cpp @@ -228,11 +228,13 @@ template <typename T> struct Foo : T { }; } -namespace dont_crash { +namespace dont_crash_on_auto_vars { 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; +constexpr auto var = T::X; +//CHECK: constexpr auto var = T::X; } |

