xref: /minix3/external/bsd/llvm/dist/clang/test/SemaCXX/Inputs/warn-new-overaligned-3.h (revision f4a2713ac843a11c696ec80c0a5e3e5d80b4d338)
1*f4a2713aSLionel Sambuc #pragma GCC system_header
2*f4a2713aSLionel Sambuc 
3*f4a2713aSLionel Sambuc // This header file pretends to be <new> from the system library, for the
4*f4a2713aSLionel Sambuc // purpose of the over-aligned warnings test.
5*f4a2713aSLionel Sambuc 
new(unsigned long)6*f4a2713aSLionel Sambuc void* operator new(unsigned long) {
7*f4a2713aSLionel Sambuc   return 0;
8*f4a2713aSLionel Sambuc }
9*f4a2713aSLionel Sambuc void* operator new[](unsigned long) {
10*f4a2713aSLionel Sambuc   return 0;
11*f4a2713aSLionel Sambuc }
12*f4a2713aSLionel Sambuc 
new(unsigned long,void *)13*f4a2713aSLionel Sambuc void* operator new(unsigned long, void *) {
14*f4a2713aSLionel Sambuc   return 0;
15*f4a2713aSLionel Sambuc }
16*f4a2713aSLionel Sambuc 
17*f4a2713aSLionel Sambuc void* operator new[](unsigned long, void *) {
18*f4a2713aSLionel Sambuc   return 0;
19*f4a2713aSLionel Sambuc }
20