aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/alias-2.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gcc.dg/alias-2.c')
-rw-r--r--gcc/testsuite/gcc.dg/alias-2.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/gcc/testsuite/gcc.dg/alias-2.c b/gcc/testsuite/gcc.dg/alias-2.c
deleted file mode 100644
index d507416b0ff..00000000000
--- a/gcc/testsuite/gcc.dg/alias-2.c
+++ /dev/null
@@ -1,16 +0,0 @@
-// { dg-do compile }
-// { dg-options "-Wstrict-aliasing=2 -fstrict-aliasing" }
-
-struct foo {
- char c;
- char d;
- short s;
- int i;
-} bar;
-
-int
-sub1 (long long int foobar)
-{
- struct foo *tmp = (struct foo *) &foobar; // { dg-warning "type-punned pointer might" "" }
- return tmp->i;
-}