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

Unified Diff: gcc/gcc/testsuite/gcc.dg/c90-const-expr-5.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, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gcc/gcc/testsuite/gcc.dg/c90-const-expr-2.c ('k') | gcc/gcc/testsuite/gcc.dg/c90-longlong-1.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gcc/gcc/testsuite/gcc.dg/c90-const-expr-5.c
diff --git a/gcc/gcc/testsuite/gcc.dg/c90-const-expr-5.c b/gcc/gcc/testsuite/gcc.dg/c90-const-expr-5.c
index 0a5af8124cd3a9b626d5f6c6bba38238e79f0c07..9f5cdef83994890162add3cc3c524c2fca5eb6f1 100644
--- a/gcc/gcc/testsuite/gcc.dg/c90-const-expr-5.c
+++ b/gcc/gcc/testsuite/gcc.dg/c90-const-expr-5.c
@@ -2,7 +2,7 @@
qualified void. */
/* Origin: Joseph Myers <joseph@codesourcery.com> */
/* { dg-do compile } */
-/* { dg-options "-std=iso9899:1990 -pedantic-errors -fshow-column" } */
+/* { dg-options "-std=iso9899:1990 -pedantic-errors" } */
typedef void V;
int *p;
@@ -15,14 +15,14 @@ f (void)
{
/* (V *)0 is a null pointer constant, so the assignment should be
diagnosed. */
- q = (j ? p : (V *)0); /* { dg-error "3:assignment from incompatible pointer type" } */
- q = (j ? p : (void *)0); /* { dg-error "3:assignment from incompatible pointer type" } */
+ q = (j ? p : (V *)0); /* { dg-error "5:assignment from incompatible pointer type" } */
+ q = (j ? p : (void *)0); /* { dg-error "5:assignment from incompatible pointer type" } */
/* And this conversion should be valid. */
(void (*)(void))(V *)0;
(void (*)(void))(void *)0;
/* Pointers to qualified void are not valid null pointer
constants. */
- fp = (const void *)0; /* { dg-error "3:ISO C forbids assignment between function pointer and 'void \\*'" } */
+ fp = (const void *)0; /* { dg-error "6:ISO C forbids assignment between function pointer and 'void \\*'" } */
fp = (void *)0;
fp = (V *)0;
fp = 0;
« no previous file with comments | « gcc/gcc/testsuite/gcc.dg/c90-const-expr-2.c ('k') | gcc/gcc/testsuite/gcc.dg/c90-longlong-1.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698