[cfe-commits] r133429 - /cfe/trunk/test/SemaCXX/null_in_arithmetic_ops.cpp

Chandler Carruth chandlerc at gmail.com
Mon Jun 20 01:59:25 PDT 2011


Author: chandlerc
Date: Mon Jun 20 03:59:25 2011
New Revision: 133429

URL: http://llvm.org/viewvc/llvm-project?rev=133429&view=rev
Log:
Use an explicitly 64-bit triple flag to ensure we can easily verify the
types printed in various diagnostics.

We could omit checking for the types, but that can mask errors where the
wrong type is streamed into the diagnostic. There was at least one of
these caught by this test already.

Modified:
    cfe/trunk/test/SemaCXX/null_in_arithmetic_ops.cpp

Modified: cfe/trunk/test/SemaCXX/null_in_arithmetic_ops.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaCXX/null_in_arithmetic_ops.cpp?rev=133429&r1=133428&r2=133429&view=diff
==============================================================================
--- cfe/trunk/test/SemaCXX/null_in_arithmetic_ops.cpp (original)
+++ cfe/trunk/test/SemaCXX/null_in_arithmetic_ops.cpp Mon Jun 20 03:59:25 2011
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 -fsyntax-only -fblocks -Wnull-arithmetic -verify %s
+// RUN: %clang_cc1 -triple x86_64-unknown-unknown -fsyntax-only -fblocks -Wnull-arithmetic -verify %s
 #include <stddef.h>
 
 void f() {





More information about the cfe-commits mailing list