diff options
author | jsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-09-26 00:59:45 +0000 |
---|---|---|
committer | jsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-09-26 00:59:45 +0000 |
commit | 4cf22dc69cc5cad4300cb5a39f7e74c76a16919d (patch) | |
tree | b1a7af4f1a0dff04534881700349a413cb512496 /gcc/testsuite/gcc.dg/pr11459-1.c | |
parent | 4f2a52ba5a7f9dfec7b51747f948349fc565fe62 (diff) | |
download | gcc-4cf22dc69cc5cad4300cb5a39f7e74c76a16919d.tar.gz |
PR c/11459
* gcc.c (cpp_options, cc1_options): Preserve relative order of
-std and -ansi options.
testsuite:
* gcc.dg/pr11459-1.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@88121 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gcc.dg/pr11459-1.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/pr11459-1.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/pr11459-1.c b/gcc/testsuite/gcc.dg/pr11459-1.c new file mode 100644 index 00000000000..1edd94f814b --- /dev/null +++ b/gcc/testsuite/gcc.dg/pr11459-1.c @@ -0,0 +1,6 @@ +/* -ansi -std=c99 should mean -std=c99, but the specs reordered the + options. Bug 11459. */ +/* { dg-do compile } */ +/* { dg-options "-ansi -std=c99 -pedantic" } */ + +long long i; |