]> oss.titaniummirror.com Git - msp430-gcc.git/blobdiff - gcc/testsuite/gcc.dg/cpp/tr-warn2.c
Imported gcc-4.4.3
[msp430-gcc.git] / gcc / testsuite / gcc.dg / cpp / tr-warn2.c
diff --git a/gcc/testsuite/gcc.dg/cpp/tr-warn2.c b/gcc/testsuite/gcc.dg/cpp/tr-warn2.c
deleted file mode 100644 (file)
index 303b0ff..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-/* K+R rejects use of function-like macros in non-function context.
-   ANSI C explicitly permits this (the macro is not expanded).  */
-
-/* { dg-do compile } */
-/* { dg-options -Wtraditional } */
-
-enum { SIGN_EXTEND = 23 };
-
-#define SIGN_EXTEND(v) (((v) < 0) ? -1 : 0)
-
-int fun(void)
-{
-  return SIGN_EXTEND;  /* { dg-warning "must be used with arguments" } */
-}