aboutsummaryrefslogtreecommitdiff
path: root/test/Analysis/new-aligned.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/Analysis/new-aligned.cpp')
-rw-r--r--test/Analysis/new-aligned.cpp14
1 files changed, 0 insertions, 14 deletions
diff --git a/test/Analysis/new-aligned.cpp b/test/Analysis/new-aligned.cpp
deleted file mode 100644
index fae1f4864856..000000000000
--- a/test/Analysis/new-aligned.cpp
+++ /dev/null
@@ -1,14 +0,0 @@
-//RUN: %clang_analyze_cc1 -std=c++17 -analyze -analyzer-checker=core -verify %s
-
-// expected-no-diagnostics
-
-// Notice the weird alignment.
-struct alignas(1024) S {};
-
-void foo() {
- // Operator new() here is the C++17 aligned new that takes two arguments:
- // size and alignment. Size is passed implicitly as usual, and alignment
- // is passed implicitly in a similar manner.
- S *s = new S; // no-warning
- delete s;
-}