projects
/
platform
/
upstream
/
gcc48.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Imported Upstream version 4.8.1
[platform/upstream/gcc48.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
catch1.C
1
// PR c++/53371
2
// { dg-do compile { target c++11 } }
3
4
struct Abs
5
{
6
virtual void a() = 0;
7
};
8
9
void foo()
10
{
11
try {
12
} catch (Abs) { } // { dg-error "abstract class type" }
13
14
try {
15
} catch (int&&) { } // { dg-error "rvalue reference type" }
16
}