]> granicus.if.org Git - clang/commitdiff
Undisable a test for a c++98-compat warning for inheriting constructors now that...
authorRichard Smith <richard-llvm@metafoo.co.uk>
Sat, 20 Jul 2013 19:22:08 +0000 (19:22 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Sat, 20 Jul 2013 19:22:08 +0000 (19:22 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@186768 91177308-0d34-0410-b5e6-96231b3b80d8

test/SemaCXX/cxx98-compat.cpp

index 51a59fd6fc70c86c95a1b2a48016d33e408438fc..7ab92f01d8d9a6fe870f50063743fd44d3eacfcd 100644 (file)
@@ -147,16 +147,12 @@ bool no_except_expr = noexcept(1 + 1); // expected-warning {{noexcept expression
 void *null = nullptr; // expected-warning {{'nullptr' is incompatible with C++98}}
 static_assert(true, "!"); // expected-warning {{static_assert declarations are incompatible with C++98}}
 
-// FIXME: Reintroduce this test if support for inheriting constructors is
-//        implemented.
-#if 0
 struct InhCtorBase {
   InhCtorBase(int);
 };
 struct InhCtorDerived : InhCtorBase {
-  using InhCtorBase::InhCtorBase; // xpected-warning {{inheriting constructors are incompatible with C++98}}
+  using InhCtorBase::InhCtorBase; // expected-warning {{inheriting constructors are incompatible with C++98}}
 };
-#endif
 
 struct FriendMember {
   static void MemberFn();