r209878 - clang/test/Frontend/Weverything-and-remarks.cpp: Add explicit -target.

NAKAMURA Takumi geek4civic at gmail.com
Fri May 30 00:03:17 PDT 2014


Author: chapuni
Date: Fri May 30 02:03:16 2014
New Revision: 209878

URL: http://llvm.org/viewvc/llvm-project?rev=209878&view=rev
Log:
clang/test/Frontend/Weverything-and-remarks.cpp: Add explicit -target.

You could see unexpected result (*.tmp.err) with "-target x86_64-win32".

  Weverything-and-remarks.cpp:11:9: warning: 'char32_t' type specifier is incompatible with C++98 [-Wc++98-compat]
  typedef __char32_t char32_t;
          ^
  Weverything-and-remarks.cpp:12:27: error: typedef redefinition with different types ('unsigned long' vs 'unsigned long long')
  typedef long unsigned int size_t;
                            ^
  Weverything-and-remarks.cpp:19:62: warning: dynamic exception specifications are deprecated [-Wdeprecated]
    static void assign(char_type& __c1, const char_type& __c2) throw() {
                                                               ^~~~~~~
  Weverything-and-remarks.cpp:19:62: note: use 'noexcept' instead
    static void assign(char_type& __c1, const char_type& __c2) throw() {
                                                               ^~~~~~~
                                                               noexcept
  Weverything-and-remarks.cpp:25:46: warning: unused parameter '__n' [-Wunused-parameter]
                                        size_t __n) {
                                               ^
  3 warnings and 1 error generated.

Modified:
    cfe/trunk/test/Frontend/Weverything-and-remarks.cpp

Modified: cfe/trunk/test/Frontend/Weverything-and-remarks.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Frontend/Weverything-and-remarks.cpp?rev=209878&r1=209877&r2=209878&view=diff
==============================================================================
--- cfe/trunk/test/Frontend/Weverything-and-remarks.cpp (original)
+++ cfe/trunk/test/Frontend/Weverything-and-remarks.cpp Fri May 30 02:03:16 2014
@@ -4,7 +4,7 @@
 // flags to filter them. The handler in BackendConsumer::DiagnosticHandlerImpl
 // should not emitting diagnostics for unhandled kinds.
 
-// RUN: %clang -c -S -Weverything -O0 -o /dev/null %s 2> %t.err
+// RUN: %clang -target x86_64-unknown-unknown -c -S -Weverything -O0 -o /dev/null %s 2> %t.err
 // RUN: FileCheck < %t.err %s
 
 typedef __char32_t char32_t;





More information about the cfe-commits mailing list