[PATCH] testsuite: MultiSource/Benchmarks/Prolangs-C/cdecl
robert lytton
robert at xmos.com
Thu Feb 13 11:55:04 PST 2014
Replace stderr with stdout to make deterministic
(xcore does not buffer stdout/stderr)
http://llvm-reviews.chandlerc.com/D2788
Files:
MultiSource/Benchmarks/Prolangs-C/cdecl/cdecl.c
MultiSource/Benchmarks/Prolangs-C/cdecl/cdecl.reference_output
Index: MultiSource/Benchmarks/Prolangs-C/cdecl/cdecl.c
===================================================================
--- MultiSource/Benchmarks/Prolangs-C/cdecl/cdecl.c
+++ MultiSource/Benchmarks/Prolangs-C/cdecl/cdecl.c
@@ -302,7 +302,7 @@
"Warning: Unsupported in%s C%s -- '%s' with '%s'\n",
compiler, CplusplusFlag ? "++" : "", type1, type2);
else
- (void) fprintf(stderr,
+ (void) fprintf(stdout,
"Warning: Unsupported in%s C%s -- '%s'\n",
compiler, CplusplusFlag ? "++" : "", type1);
}
Index: MultiSource/Benchmarks/Prolangs-C/cdecl/cdecl.reference_output
===================================================================
--- MultiSource/Benchmarks/Prolangs-C/cdecl/cdecl.reference_output
+++ MultiSource/Benchmarks/Prolangs-C/cdecl/cdecl.reference_output
@@ -1,10 +1,3 @@
-Warning: Unsupported in C -- 'reference'
-Warning: Unsupported in C -- 'pointer to member of class'
-Warning: Unsupported in C -- 'pointer to member of class'
-Warning: Unsupported in C -- 'pointer to member of class'
-Warning: Unsupported in C -- 'pointer to member of class'
-Warning: Unsupported in C -- 'pointer to member of class'
-Warning: Unsupported in C -- 'pointer to member of class'
[] means optional; {} means 1 or more; <> means defined elsewhere
commands are separated by ';' and newlines
command:
@@ -104,8 +97,11 @@
ansi
(nocplusplus)
char *x
+Warning: Unsupported in C -- 'reference'
char &x
+Warning: Unsupported in C -- 'pointer to member of class'
int X::*foo
+Warning: Unsupported in C -- 'pointer to member of class'
class Y *(X::*foo)(arg1, arg2)
int *x(char *w, int y)
int *x(char *)
@@ -113,7 +109,9 @@
int *x(char *, int )
int *x(args)
declare x as pointer to char
+Warning: Unsupported in C -- 'pointer to member of class'
declare foo as pointer to member of class X int
+Warning: Unsupported in C -- 'pointer to member of class'
declare foo as pointer to member of class X function (arg1, arg2) returning pointer to class Y
declare x as function returning pointer to int
declare x as function (args) returning pointer to int
@@ -122,6 +120,7 @@
declare x as function (pointer to char, int, float) returning pointer to int
declare x as function (int) returning pointer to int
(char *)x
+Warning: Unsupported in C -- 'pointer to member of class'
(int X::*)x
(int (*)())x
(int (*)())x
@@ -131,6 +130,7 @@
(int (*)(char *, int ))x
(int (*)(char *, int , float ))x
cast x into pointer to char
+Warning: Unsupported in C -- 'pointer to member of class'
cast x into pointer to member of class X int
cast x into pointer to function returning int
cast x into pointer to function (pointer to char) returning int
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D2788.1.patch
Type: text/x-patch
Size: 2688 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140213/9adecd52/attachment.bin>
More information about the llvm-commits
mailing list