summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/pr45038.C
blob: 57c0c4417e66ef72e64b399ddaffb7ed7517ac80 (plain)
1
2
3
4
5
6
7
8
9
// PR preprocessor/45038
// { dg-do compile }
// { dg-options "-Werror -Wold-style-cast" }

double f(void)
{
  // We used to produce old-style casts for this.
  return __DBL_MIN__;
}