diff options
Diffstat (limited to 'gcc/testsuite/g++.dg/cpp0x/auto9.C')
-rw-r--r-- | gcc/testsuite/g++.dg/cpp0x/auto9.C | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/testsuite/g++.dg/cpp0x/auto9.C b/gcc/testsuite/g++.dg/cpp0x/auto9.C index ab90be5..142ef90 100644 --- a/gcc/testsuite/g++.dg/cpp0x/auto9.C +++ b/gcc/testsuite/g++.dg/cpp0x/auto9.C @@ -79,10 +79,10 @@ enum struct D : auto * { FF = 0 }; // { dg-error "must be an integral type|decl void bar () { - try { } catch (auto i) { } // { dg-error "invalid use of" } - try { } catch (auto) { } // { dg-error "invalid use of" } - try { } catch (auto *i) { } // { dg-error "invalid use of" } - try { } catch (auto *) { } // { dg-error "invalid use of" } + try { } catch (auto i) { } // { dg-error "parameter declared" } + try { } catch (auto) { } // { dg-error "parameter declared" } + try { } catch (auto *i) { } // { dg-error "parameter declared" } + try { } catch (auto *) { } // { dg-error "parameter declared" } } void |