Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(80)

Side by Side Diff: gcc/gcc/testsuite/g++.dg/eh/builtin3.C

Issue 3050029: [gcc] GCC 4.5.0=>4.5.1 (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/nacl-toolchain.git
Patch Set: Created 10 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « gcc/gcc/testsuite/g++.dg/eh/builtin1.C ('k') | gcc/gcc/testsuite/g++.dg/eh/init-temp1.C » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Without explicit prototype, we need to assume the builtin can 1 // Without explicit prototype, we need to assume the builtin can
2 // throw for builtins that at least on one platform can throw. 2 // throw for builtins that at least on one platform can throw.
3 // { dg-do compile } 3 // { dg-do compile }
4 // { dg-options "-fdump-tree-eh" } 4 // { dg-options "-fdump-tree-eh" }
5 5
6 struct A { A (); ~A (); int i; }; 6 struct A { A (); ~A (); int i; };
7 7
8 int 8 int
9 bar () 9 bar ()
10 { 10 {
11 A a; 11 A a;
12 __builtin_printf ("foo %d\n", a.i); 12 __builtin_printf ("foo %d\n", a.i);
13 } 13 }
14 14
15 /* { dg-final { scan-tree-dump-times "resx 1" 1 "eh" } } */ 15 /* { dg-final { scan-tree-dump-times "resx" 1 "eh" } } */
16 /* { dg-final { cleanup-tree-dump "eh" } } */ 16 /* { dg-final { cleanup-tree-dump "eh" } } */
OLDNEW
« no previous file with comments | « gcc/gcc/testsuite/g++.dg/eh/builtin1.C ('k') | gcc/gcc/testsuite/g++.dg/eh/init-temp1.C » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698