Debian Codegraph @

gcc/testsuite/g++.dg/pr71973-2.C

raw
1 // { dg-do compile }
2 // { dg-options "-Wall -fdump-tree-eh" }
3
4 typedef __SIZE_TYPE__ size_t;
5 struct tm;
6
7 extern "C"
8 size_t strftime (char*, size_t, const char*, const struct tm*)
9 __attribute__ ((__nothrow__));
10
11 void foo () throw ()
12 {
13 strftime (0,0,0,0); // { dg-warning "argument \(1|3|4\) null where non-null expected" }
14 // { dg-warning "too many arguments for format" "" { target *-*-* } .-1 }
15 }
16
17 // { dg-final { scan-tree-dump-not "eh_dispatch" "eh" } }
18 // { dg-final { scan-tree-dump-not "resx" "eh" } }