aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.c-torture/compile/pr30564-2.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc-4.9/gcc/testsuite/gcc.c-torture/compile/pr30564-2.c')
-rw-r--r--gcc-4.9/gcc/testsuite/gcc.c-torture/compile/pr30564-2.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/gcc-4.9/gcc/testsuite/gcc.c-torture/compile/pr30564-2.c b/gcc-4.9/gcc/testsuite/gcc.c-torture/compile/pr30564-2.c
new file mode 100644
index 000000000..403f39661
--- /dev/null
+++ b/gcc-4.9/gcc/testsuite/gcc.c-torture/compile/pr30564-2.c
@@ -0,0 +1,12 @@
+
+static int RawOrEnc = 0;
+static inline void addpair(int fp, int un)
+{
+ if (RawOrEnc == 0 && fp != un)
+ RawOrEnc = 1;
+}
+int f(int un0, char *a, unsigned int __s2_len)
+{
+ addpair(un0, un0);
+ __s2_len < 4 ? __builtin_strcmp (a, "-") : 0;
+}