summaryrefslogtreecommitdiff
path: root/clang/test/SemaCXX/Inputs/warn-new-overaligned-3.h
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/SemaCXX/Inputs/warn-new-overaligned-3.h')
-rw-r--r--clang/test/SemaCXX/Inputs/warn-new-overaligned-3.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/clang/test/SemaCXX/Inputs/warn-new-overaligned-3.h b/clang/test/SemaCXX/Inputs/warn-new-overaligned-3.h
new file mode 100644
index 0000000..d2bd4d5
--- /dev/null
+++ b/clang/test/SemaCXX/Inputs/warn-new-overaligned-3.h
@@ -0,0 +1,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;
+}