r212009 - test: move test from CodeGen to Sema
Saleem Abdulrasool
compnerd at compnerd.org
Sun Jun 29 19:14:37 PDT 2014
Author: compnerd
Date: Sun Jun 29 21:14:37 2014
New Revision: 212009
URL: http://llvm.org/viewvc/llvm-project?rev=212009&view=rev
Log:
test: move test from CodeGen to Sema
Move test from CodeGen to Sema to more accurately reflect what is being tested
as pointed out by Alp.
Added:
cfe/trunk/test/SemaCXX/windows-arm-valist.cpp
- copied, changed from r212008, cfe/trunk/test/CodeGenCXX/windows-arm-valist.cpp
Removed:
cfe/trunk/test/CodeGenCXX/windows-arm-valist.cpp
Removed: cfe/trunk/test/CodeGenCXX/windows-arm-valist.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenCXX/windows-arm-valist.cpp?rev=212008&view=auto
==============================================================================
--- cfe/trunk/test/CodeGenCXX/windows-arm-valist.cpp (original)
+++ cfe/trunk/test/CodeGenCXX/windows-arm-valist.cpp (removed)
@@ -1,16 +0,0 @@
-// RUN: %clang_cc1 -triple thumbv7--windows-msvc -std=c++11 -fsyntax-only -fms-compatibility -x c++ %s
-
-#include <stdarg.h>
-
-template <typename lhs_, typename rhs_>
-struct is_same { enum { value = 0 }; };
-
-template <typename type_>
-struct is_same<type_, type_> { enum { value = 1 }; };
-
-void check() {
- va_list va;
- char *cp;
- static_assert(is_same<decltype(va), decltype(cp)>::value,
- "type mismatch for va_list");
-}
Copied: cfe/trunk/test/SemaCXX/windows-arm-valist.cpp (from r212008, cfe/trunk/test/CodeGenCXX/windows-arm-valist.cpp)
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaCXX/windows-arm-valist.cpp?p2=cfe/trunk/test/SemaCXX/windows-arm-valist.cpp&p1=cfe/trunk/test/CodeGenCXX/windows-arm-valist.cpp&r1=212008&r2=212009&rev=212009&view=diff
==============================================================================
--- cfe/trunk/test/CodeGenCXX/windows-arm-valist.cpp (original)
+++ cfe/trunk/test/SemaCXX/windows-arm-valist.cpp Sun Jun 29 21:14:37 2014
@@ -1,4 +1,5 @@
-// RUN: %clang_cc1 -triple thumbv7--windows-msvc -std=c++11 -fsyntax-only -fms-compatibility -x c++ %s
+// RUN: %clang_cc1 -triple thumbv7--windows-msvc -std=c++11 -verify -fsyntax-only %s
+// expected-no-diagnostics
#include <stdarg.h>
More information about the cfe-commits
mailing list