This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
On 3/28/07, Stuart Hastings <stuart@apple.com> wrote:Do you want the testcase? It's pretty nonsensical:
int f(unsigned int i) { @try { } @catch(id) { } for (;;) for (;;) @try { if (i) break; } @catch(id) { } }
If you want the testcase, I'm guessing it would become .../testsuite/ objc.dg/pr31281.m (?).
Can you turn this into a quick execute testcase and put it into objc/execute/exceptions so that it gets run by both the next and gnu runtimes. It might be better if objc/compile/exceptions is added for such compile time testcase also.
/* From PR31281. */ extern void abort (void); int __attribute__((noinline)) f(unsigned int i) { int j, k; @try { } @catch(id) { return 13; } for (j=0; j<i; j++) for (k=0; k<i; k++) { @try { if (i) break; } @catch(id) { } return 9; } return 0; }
int main() { if (f(1)) abort (); return 0 ; }
Thanks,
stuart hastings Apple
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |