* g++.dg/cpp0x/lambda/lambda-this8.C: use __builtin_abort
authorJason Merrill <jason@gcc.gnu.org>
Thu, 14 Feb 2013 13:51:21 +0000 (08:51 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Thu, 14 Feb 2013 13:51:21 +0000 (08:51 -0500)
From-SVN: r196053

gcc/testsuite/g++.dg/cpp0x/lambda/lambda-this8.C

index 9309a44d8792b9f6968cbe11af9ffd1aa66dac78..ffc5da1b529085e9a918891c80368eb9443cb8ae 100644 (file)
@@ -3,8 +3,6 @@
 
 #include <functional>
 
-extern "C" void abort() throw();
-
 struct test {
   template<typename T>
   std::function<void()> broken(int x) {
@@ -26,7 +24,7 @@ struct test {
   }
 
   template<typename T>
-  void print() { if (this == NULL) abort (); }
+  void print() { if (this == NULL) __builtin_abort (); }
 };
 
 int main(void) {