URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Subversion Repositories openrisc_2011-10-31
Compare Revisions
- This comparison shows the changes necessary to convert path
/openrisc/tags/gnu-src/gcc-4.5.1/gcc-4.5.1-or32-1.0rc1/gcc/testsuite/g++.old-deja/g++.rfg
- from Rev 305 to Rev 338
- ↔ Reverse comparison
Rev 305 → Rev 338
/00321_01-.C
0,0 → 1,14
// { dg-do assemble } |
// Here is a simple one. GCC correctly gives errors for this code when the |
// - -pedantic-errors option is used, whereas g++ doesn't. |
|
|
int (*p1)[3]; |
int (*p2)[5]; |
|
void |
test () |
{ |
p1 == p2; // { dg-error "comparison between distinct pointer types" } comparison.* |
p1 > p2; // { dg-error "comparison between distinct pointer types" } comparison.* |
} |
00321_01-.C
Property changes :
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property
Index: 00324_02-.C
===================================================================
--- 00324_02-.C (nonexistent)
+++ 00324_02-.C (revision 338)
@@ -0,0 +1,16 @@
+// { dg-do assemble }
+// Another simple one. GCC corerctly gives errors for this code when the
+// - -pedantic-errors options is used. g++ doesn't.
+
+
+void f (int i) { }
+
+void (*fp)(void);
+
+int i;
+
+void
+test ()
+{
+ i ? f : fp; // { dg-error "conditional expression|invalid conversion" }
+}
00324_02-.C
Property changes :
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property