diff options
Diffstat (limited to 'clang/test/Modules/Inputs/merge-using-decls/b.h')
-rw-r--r-- | clang/test/Modules/Inputs/merge-using-decls/b.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/test/Modules/Inputs/merge-using-decls/b.h b/clang/test/Modules/Inputs/merge-using-decls/b.h index 359555570a4..5bad68d2d5f 100644 --- a/clang/test/Modules/Inputs/merge-using-decls/b.h +++ b/clang/test/Modules/Inputs/merge-using-decls/b.h @@ -29,11 +29,13 @@ template<typename T> struct D : X, T { using typename X::t; }; +#if __cplusplus <= 199711L // C++11 does not allow access declerations template<typename T> struct E : X, T { // Mismatch in using/access-declaration-ness. T::value; X::v; }; +#endif template<typename T> struct F : X, T { // Mismatch in nested-name-specifier. @@ -46,5 +48,9 @@ template<typename T> struct F : X, T { // Force instantiation. typedef C<YB>::type I; typedef D<YBRev>::t I; + +#if __cplusplus <= 199711L // C++11 does not allow access declerations typedef E<YB>::type I; +#endif + typedef F<YB>::type I; |