annotate gcc/testsuite/c-c++-common/pr27336.c @ 16:04ced10e8804

gcc 7
author kono
date Fri, 27 Oct 2017 22:46:09 +0900
parents
children 1830386684a0
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
16
kono
parents:
diff changeset
1 /* { dg-do compile } */
kono
parents:
diff changeset
2 /* { dg-options "-O2 -fdelete-null-pointer-checks -fdump-tree-vrp1" } */
kono
parents:
diff changeset
3
kono
parents:
diff changeset
4 struct B { int x; };
kono
parents:
diff changeset
5 extern void g3(struct B *that) __attribute__((nonnull));
kono
parents:
diff changeset
6 int f3(struct B *a)
kono
parents:
diff changeset
7 {
kono
parents:
diff changeset
8 g3(a);
kono
parents:
diff changeset
9 return a != (void *)0;
kono
parents:
diff changeset
10 }
kono
parents:
diff changeset
11
kono
parents:
diff changeset
12 /* { dg-final { scan-tree-dump "return 1;" "vrp1" } } */