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
[gcc]
[official-gcc.git]
/
gcc
/
testsuite
/
obj-c++.dg
/
try-catch-16.mm
blob
4aea2647a10e1b3b9f77b0c490be5147e07b3cc1
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
extern void func( void * outData) ;
6
struct Point {
7
short v;
8
short h;
9
};
10
11
12
void foo ()
13
{
14
Point eventLocation;
15
@try {
16
} @catch (id iiii) {
17
}
18
19
func( &eventLocation );
20
}