Use clang driver on MinGW where clang-cl is not usable. MSVC target still uses clang-cl to minimize changes to existing test runners. Differential Revision: https://reviews.llvm.org/D147432
13 lines
263 B
C++
13 lines
263 B
C++
// RUN: %clang_cl_asan %Od %s %Fe%t
|
|
// RUN: %run %t | FileCheck %s
|
|
|
|
#include <windows.h>
|
|
#include <stdio.h>
|
|
|
|
int main(void) {
|
|
static const char *foo = "foobarspam";
|
|
printf("Global string is `%s`\n", foo);
|
|
// CHECK: Global string is `foobarspam`
|
|
return 0;
|
|
}
|