annotate gcc/testsuite/c-c++-common/pr27336.c @ 18:1830386684a0

gcc-9.2.0
author anatofuz
date Thu, 13 Feb 2020 11:34:05 +0900
parents 04ced10e8804
children
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" } */
18
1830386684a0 gcc-9.2.0
anatofuz
parents: 16
diff changeset
3 /* { dg-skip-if "" { keeps_null_pointer_checks } } */
16
kono
parents:
diff changeset
4
kono
parents:
diff changeset
5 struct B { int x; };
kono
parents:
diff changeset
6 extern void g3(struct B *that) __attribute__((nonnull));
kono
parents:
diff changeset
7 int f3(struct B *a)
kono
parents:
diff changeset
8 {
kono
parents:
diff changeset
9 g3(a);
kono
parents:
diff changeset
10 return a != (void *)0;
kono
parents:
diff changeset
11 }
kono
parents:
diff changeset
12
kono
parents:
diff changeset
13 /* { dg-final { scan-tree-dump "return 1;" "vrp1" } } */