OSDN Git Service

* mklibgcc.in: Don't use \n in a line subject to
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.c-torture / execute / string-opt-2.c
index 29e9af0..7b9bcbf 100644 (file)
@@ -7,6 +7,7 @@
 
 extern void abort(void);
 extern char *strpbrk (const char *, const char *);
+extern int strcmp (const char *, const char *);
 
 void fn (const char *foo, const char *const *bar)
 {
@@ -26,6 +27,11 @@ void fn (const char *foo, const char *const *bar)
     abort();
   if (strpbrk (foo + 6, "o") != foo + 7)
     abort();
+
+  /* Test at least one instance of the __builtin_ style.  We do this
+     to ensure that it works and that the prototype is correct.  */
+  if (__builtin_strpbrk (foo + 6, "o") != foo + 7)
+    abort();
 }
 
 int main()