r360548 - Fix test to use -cc1.

Leonard Chan via cfe-commits cfe-commits at lists.llvm.org
Sun May 12 15:44:46 PDT 2019


Author: leonardchan
Date: Sun May 12 15:44:46 2019
New Revision: 360548

URL: http://llvm.org/viewvc/llvm-project?rev=360548&view=rev
Log:
Fix test to use -cc1.

Added:
    cfe/trunk/test/Sema/mingw-macro-qualified-type.c
Removed:
    cfe/trunk/test/Driver/mingw-macro-qualified-type.c

Removed: cfe/trunk/test/Driver/mingw-macro-qualified-type.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Driver/mingw-macro-qualified-type.c?rev=360547&view=auto
==============================================================================
--- cfe/trunk/test/Driver/mingw-macro-qualified-type.c (original)
+++ cfe/trunk/test/Driver/mingw-macro-qualified-type.c (removed)
@@ -1,12 +0,0 @@
-// Ensure that builtin attributes do not get treated as user defined macros to
-// be weapped in macro qualified types. This addresses P41852.
-//
-// RUN: %clang -c %s -target i686-w64-mingw32
-
-typedef int WINBOOL;
-typedef unsigned int UINT_PTR, *PUINT_PTR;
-typedef unsigned long long ULONG64, *PULONG64;
-#define WINAPI __stdcall
-#define CALLBACK __stdcall
-
-typedef WINBOOL(CALLBACK WINAPI *PSYMBOLSERVERCALLBACKPROC)(UINT_PTR action, ULONG64 data, ULONG64 context);

Added: cfe/trunk/test/Sema/mingw-macro-qualified-type.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/mingw-macro-qualified-type.c?rev=360548&view=auto
==============================================================================
--- cfe/trunk/test/Sema/mingw-macro-qualified-type.c (added)
+++ cfe/trunk/test/Sema/mingw-macro-qualified-type.c Sun May 12 15:44:46 2019
@@ -0,0 +1,13 @@
+// Ensure that builtin attributes do not get treated as user defined macros to
+// be weapped in macro qualified types. This addresses P41852.
+//
+// RUN: %clang_cc1 %s -triple i686-w64-mingw32 -fsyntax-only -verify
+// expected-no-diagnostics
+
+typedef int WINBOOL;
+typedef unsigned int UINT_PTR, *PUINT_PTR;
+typedef unsigned long long ULONG64, *PULONG64;
+#define WINAPI __stdcall
+#define CALLBACK __stdcall
+
+typedef WINBOOL(CALLBACK WINAPI *PSYMBOLSERVERCALLBACKPROC)(UINT_PTR action, ULONG64 data, ULONG64 context);




More information about the cfe-commits mailing list