We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 550adc9 commit 1cb92a2Copy full SHA for 1cb92a2
compiler-rt/test/asan/TestCases/Windows/operator_array_new_with_dtor_left_oob.cpp
@@ -13,7 +13,9 @@ struct C {
13
__attribute__((optnone))
14
#endif
15
int ATTRIBUTE_NOINLINE hide(int x) { return x; }
16
-
+#if defined(_MSC_VER) && !defined(__clang__)
17
+#pragma optimize("", on)
18
+#endif
19
int main() {
20
C *buffer = new C[42];
21
buffer[hide(-(1 + (int)sizeof(void*) / 4))].x = 42;
0 commit comments