forked from gcc-mirror/gcc
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* c-common.c (warning_candidate_p): Don't track non-const calls or STRING_CSTs. * g++.dg/warn/Wsequence-point-3.C: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@166823 138bc75d-0d04-0410-961f-82ee72b054a4
- Loading branch information
jakub
committed
Nov 16, 2010
1 parent
f497945
commit 6ef8d12
Showing
4 changed files
with
50 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
// PR c++/46401 | ||
// { dg-do compile } | ||
// { dg-options "-Wsequence-point" } | ||
|
||
struct S | ||
{ | ||
S (); | ||
S &operator<< (const char *); | ||
S (const S &); | ||
}; | ||
|
||
#define N1(n) << #n | ||
#define N2(n) N1(n) | ||
#define N3(n) N2(n##0) N2(n##1) N2(n##2) N2(n##3) N2(n##4) \ | ||
N2(n##5) N2(n##6) N2(n##7) N2(n##8) N2(n##9) | ||
#define N4(n) N3(n##0) N3(n##1) N3(n##2) N3(n##3) N3(n##4) \ | ||
N3(n##5) N3(n##6) N3(n##7) N3(n##8) N3(n##9) | ||
#define N5(n) N4(n##0) N4(n##1) N4(n##2) N4(n##3) N4(n##4) \ | ||
N4(n##5) N4(n##6) N4(n##7) N4(n##8) N4(n##9) | ||
S s = S () N5(a) N5(b); |