summaryrefslogtreecommitdiff
path: root/clang/test/SemaCXX/Inputs/warn-new-overaligned-3.h
blob: d2bd4d509548a09f05a7ab85630e0e774c6f33b4 (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#pragma GCC system_header

// This header file pretends to be <new> from the system library, for the
// purpose of the over-aligned warnings test.

void* operator new(unsigned long) {
  return 0;
}
void* operator new[](unsigned long) {
  return 0;
}

void* operator new(unsigned long, void *) {
  return 0;
}

void* operator new[](unsigned long, void *) {
  return 0;
}