diff options
Diffstat (limited to 'test/SemaCXX/type-traits.cpp')
-rw-r--r-- | test/SemaCXX/type-traits.cpp | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/test/SemaCXX/type-traits.cpp b/test/SemaCXX/type-traits.cpp index 63286e6e13..bf590f9c72 100644 --- a/test/SemaCXX/type-traits.cpp +++ b/test/SemaCXX/type-traits.cpp @@ -1384,9 +1384,6 @@ void has_nothrow_copy() { { int arr[F(__has_nothrow_copy(cvoid))]; } } -template<bool b> struct assert_expr; -template<> struct assert_expr<true> {}; - void has_nothrow_constructor() { { int arr[T(__has_nothrow_constructor(Int))]; } { int arr[T(__has_nothrow_constructor(IntAr))]; } @@ -1415,11 +1412,6 @@ void has_nothrow_constructor() { { int arr[F(__has_nothrow_constructor(void))]; } { int arr[F(__has_nothrow_constructor(cvoid))]; } { int arr[F(__has_nothrow_constructor(HasTemplateCons))]; } - - // While parsing an in-class initializer, the constructor is not known to be - // non-throwing yet. - struct HasInClassInit { int n = (assert_expr<!__has_nothrow_constructor(HasInClassInit)>(), 0); }; - { int arr[T(__has_nothrow_constructor(HasInClassInit))]; } } void has_virtual_destructor() { |