Commit 0dd50fc6 by Jonathan Wakely Committed by Jonathan Wakely

Fix testsuite regression caused by r271077

	* g++.dg/cpp0x/Wattributes1.C: Adjust dg-error line number to fix
	regression, by matching a note on any line.
	* g++.dg/cpp0x/Wattributes2.C: Add another copy that checks the
	correct line number is matched without depending on a library header.

From-SVN: r271133
parent e6e08429
2019-05-13 Jonathan Wakely <jwakely@redhat.com>
* g++.dg/cpp0x/Wattributes1.C: Adjust dg-error line number to fix
regression, by matching a note on any line.
* g++.dg/cpp0x/Wattributes2.C: Add another copy that checks the
correct line number is matched without depending on a library header.
2019-05-13 Richard Biener <rguenther@suse.de> 2019-05-13 Richard Biener <rguenther@suse.de>
PR tree-optimization/90402 PR tree-optimization/90402
......
...@@ -5,4 +5,4 @@ ...@@ -5,4 +5,4 @@
#include <new> #include <new>
__attribute__((visibility("hidden")))void*operator new(std::size_t); // { dg-warning "visibility attribute ignored" } __attribute__((visibility("hidden")))void*operator new(std::size_t); // { dg-warning "visibility attribute ignored" }
// { dg-message "previous declaration" "" { target *-*-* } 125 } // { dg-message "previous declaration" "" { target *-*-* } 0 }
// PR c++/60373
// { dg-do compile { target c++11 } }
// { dg-require-visibility "" }
#pragma GCC visibility push(default)
namespace std
{
using size_t = decltype(sizeof(0));
struct nothrow_t { };
}
void* operator new(std::size_t)
__attribute__((__externally_visible__));
void* operator new[](std::size_t)
__attribute__((__externally_visible__));
void* operator new(std::size_t, const std::nothrow_t&) noexcept
__attribute__((__externally_visible__, __malloc__));
void* operator new[](std::size_t, const std::nothrow_t&) noexcept
__attribute__((__externally_visible__, __malloc__));
void operator delete(void*) noexcept
__attribute__((__externally_visible__));
void operator delete[](void*) noexcept
__attribute__((__externally_visible__));
void operator delete(void*, const std::nothrow_t&) noexcept
__attribute__((__externally_visible__));
void operator delete[](void*, const std::nothrow_t&) noexcept
__attribute__((__externally_visible__));
#pragma GCC visibility pop
__attribute__((visibility("hidden")))void*operator new(std::size_t); // { dg-warning "visibility attribute ignored" }
// { dg-message "previous declaration" "" { target *-*-* } 12 }
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