r321830 - Use POSIX argument syntax in test rewrite-includes-messages.c
Hubert Tong via cfe-commits
cfe-commits at lists.llvm.org
Thu Jan 4 15:03:48 PST 2018
Author: hubert.reinterpretcast
Date: Thu Jan 4 15:03:48 2018
New Revision: 321830
URL: http://llvm.org/viewvc/llvm-project?rev=321830&view=rev
Log:
Use POSIX argument syntax in test rewrite-includes-messages.c
Invoke diff such that options precede operands. Not doing so leads to
unspecified behaviour under the LSB.
Modified:
cfe/trunk/test/Frontend/rewrite-includes-messages.c
Modified: cfe/trunk/test/Frontend/rewrite-includes-messages.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Frontend/rewrite-includes-messages.c?rev=321830&r1=321829&r2=321830&view=diff
==============================================================================
--- cfe/trunk/test/Frontend/rewrite-includes-messages.c (original)
+++ cfe/trunk/test/Frontend/rewrite-includes-messages.c Thu Jan 4 15:03:48 2018
@@ -1,6 +1,6 @@
// RUN: %clang_cc1 -E -frewrite-includes %s -I%S/Inputs/ | %clang_cc1 -Wall -fsyntax-only -Wunused-macros -x c - 2>&1 > %t.1
// RUN: %clang_cc1 -I%S/Inputs/ -Wall -Wunused-macros -fsyntax-only %s 2>&1 > %t.2
-// RUN: diff %t.1 %t.2 -u
+// RUN: diff -u %t.1 %t.2
// expected-no-diagnostics
#include "rewrite-includes-messages.h"
More information about the cfe-commits
mailing list