blob: d8271b1d87416680cb139e1e44fa1e469e32ec8f [file] [log] [blame]
// { dg-do compile }
// { dg-options "-Wall -fdump-tree-eh" }
typedef __SIZE_TYPE__ size_t;
struct tm;
extern "C"
size_t strftime (char*, size_t, const char*, const struct tm*)
__attribute__ ((__nothrow__));
void foo () throw ()
{
strftime (0,0,0,0); // { dg-warning "null argument where non-null required" }
// { dg-warning "too many arguments for format" "" { target *-*-* } .-1 }
}
// { dg-final { scan-tree-dump-not "eh_dispatch" "eh" } }
// { dg-final { scan-tree-dump-not "resx" "eh" } }