Message ID | 20110601175227.53F5A1DA1C9@topo.tor.corp.google.com |
---|---|
State | New |
Headers | show |
diff --git a/gcc/testsuite/g++.dg/pph/c120060625-1.cc b/gcc/testsuite/g++.dg/pph/c120060625-1.cc new file mode 100644 index 0000000..05c7929 --- /dev/null +++ b/gcc/testsuite/g++.dg/pph/c120060625-1.cc @@ -0,0 +1 @@ +#include "c120060625-1.h" diff --git a/gcc/testsuite/g++.dg/pph/c120060625-1.h b/gcc/testsuite/g++.dg/pph/c120060625-1.h new file mode 100644 index 0000000..07266d9 --- /dev/null +++ b/gcc/testsuite/g++.dg/pph/c120060625-1.h @@ -0,0 +1,13 @@ +#ifndef __PPH_GUARD_H +#define __PPH_GUARD_H +/* PR middle-end/28151 */ +/* Testcase by Steven Bosscher <stevenb.gcc@gmail.com> */ + +_Complex float b; + +void foo (void) +{ + _Complex float a = __FLT_MAX__; + b = __FLT_MAX__ + a; +} +#endif