repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
* doc/invoke.texi: Document -std=c++17 and -std=gnu++17 and document
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
eh
/
spec9.C
blob
84d95fcc036b45035d4fe7b4439514c8f3bf2a1e
1
// PR c++/15745
2
// { dg-do run }
3
4
typedef int IntArray[10];
5
IntArray i;
6
7
void test_array()
8
#if __cplusplus <= 201402L
9
throw (IntArray) // { dg-warning "deprecated" "" { target { c++11 && { ! c++17 } } } }
10
#endif
11
{
12
throw i;
13
}
14
15
int main ()
16
{
17
try
18
{
19
test_array();
20
}
21
catch (IntArray) {}
22
}