summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/pr77948-5.C
blob: bec34a15fbd9fef644ade549785badbf486585b0 (plain)
1
2
3
4
5
6
7
8
9
10
// PR c++/77948
// { dg-do compile }
// { dg-options "-std=gnu++98 -std=c++11" }

void
foo ()
{
  auto qfp = 1.0q; // { dg-error "unable to find numeric literal operator" }
  auto Qfp = 1.0Q; // { dg-error "unable to find numeric literal operator" }
}