]> granicus.if.org Git - clang/commitdiff
Use an explicitly 64-bit triple flag to ensure we can easily verify the
authorChandler Carruth <chandlerc@gmail.com>
Mon, 20 Jun 2011 08:59:25 +0000 (08:59 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Mon, 20 Jun 2011 08:59:25 +0000 (08:59 +0000)
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.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@133429 91177308-0d34-0410-b5e6-96231b3b80d8

test/SemaCXX/null_in_arithmetic_ops.cpp

index d9cfc5f89a8d1c609523aac607b8c8b47ccbf8e0..26af5e6e75c5a849a8afd6727dd2bd710da89981 100644 (file)
@@ -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() {