Commit 1c322ab1 by Jason Merrill

* g++.dg/cpp0x/lambda/lambda-this8.C: use __builtin_abort

From-SVN: r196053
parent 7d00dca9
...@@ -3,8 +3,6 @@ ...@@ -3,8 +3,6 @@
#include <functional> #include <functional>
extern "C" void abort() throw();
struct test { struct test {
template<typename T> template<typename T>
std::function<void()> broken(int x) { std::function<void()> broken(int x) {
...@@ -26,7 +24,7 @@ struct test { ...@@ -26,7 +24,7 @@ struct test {
} }
template<typename T> template<typename T>
void print() { if (this == NULL) abort (); } void print() { if (this == NULL) __builtin_abort (); }
}; };
int main(void) { int main(void) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment