repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
history
|
raw
|
HEAD
2015-05-05 Yvan Roux <yvan.roux@linaro.org>
[official-gcc.git]
/
gcc
/
testsuite
/
obj-c++.dg
/
try-catch-17.mm
blob
7c642aca0cfa8d7e9bd1154367122f59083a0d64
1
/* Test if addition of 'volatile' to object causes bogus error in presence of try-catch. */
2
/* { dg-options "-fobjc-exceptions" } */
3
/* { dg-do compile } */
4
5
struct Point {
6
short v;
7
short h;
8
};
9
10
void foo ()
11
{
12
Point eventLocation;
13
@try {
14
} @catch (id iiii) {
15
}
16
17
Point p = eventLocation;
18
}