Changeset View
Changeset View
Standalone View
Standalone View
clang/test/Driver/cl-options.c
Show First 20 Lines • Show All 518 Lines • ▼ Show 20 Lines | |||||
// NoDllExportInlines: "-fno-dllexport-inlines" | // NoDllExportInlines: "-fno-dllexport-inlines" | ||||
// RUN: %clang_cl /Zc:dllexportInlines /c -### -- %s 2>&1 | FileCheck -check-prefix=DllExportInlines %s | // RUN: %clang_cl /Zc:dllexportInlines /c -### -- %s 2>&1 | FileCheck -check-prefix=DllExportInlines %s | ||||
// DllExportInlines-NOT: "-fno-dllexport-inlines" | // DllExportInlines-NOT: "-fno-dllexport-inlines" | ||||
// RUN: %clang_cl /fallback /Zc:dllexportInlines- /c -### -- %s 2>&1 | FileCheck -check-prefix=DllExportInlinesFallback %s | // RUN: %clang_cl /fallback /Zc:dllexportInlines- /c -### -- %s 2>&1 | FileCheck -check-prefix=DllExportInlinesFallback %s | ||||
// DllExportInlinesFallback: error: option '/Zc:dllexportInlines-' is ABI-changing and not compatible with '/fallback' | // DllExportInlinesFallback: error: option '/Zc:dllexportInlines-' is ABI-changing and not compatible with '/fallback' | ||||
// RUN: %clang_cl /Zi /c -### -- %s 2>&1 | FileCheck -check-prefix=Zi %s | // RUN: %clang_cl /Zi /c -### -- %s 2>&1 | FileCheck -check-prefix=Zi %s | ||||
// Zi: "-gcodeview" | // Zi: "-gcodeview" | ||||
// Zi: "-debug-info-kind=limited" | // Zi: "-debug-info-kind=constructor" | ||||
// RUN: %clang_cl /Z7 /c -### -- %s 2>&1 | FileCheck -check-prefix=Z7 %s | // RUN: %clang_cl /Z7 /c -### -- %s 2>&1 | FileCheck -check-prefix=Z7 %s | ||||
// Z7: "-gcodeview" | // Z7: "-gcodeview" | ||||
// Z7: "-debug-info-kind=limited" | // Z7: "-debug-info-kind=constructor" | ||||
// RUN: %clang_cl /Zd /c -### -- %s 2>&1 | FileCheck -check-prefix=Z7GMLT %s | // RUN: %clang_cl /Zd /c -### -- %s 2>&1 | FileCheck -check-prefix=Z7GMLT %s | ||||
// Z7GMLT: "-gcodeview" | // Z7GMLT: "-gcodeview" | ||||
// Z7GMLT: "-debug-info-kind=line-tables-only" | // Z7GMLT: "-debug-info-kind=line-tables-only" | ||||
// RUN: %clang_cl -gline-tables-only /c -### -- %s 2>&1 | FileCheck -check-prefix=ZGMLT %s | // RUN: %clang_cl -gline-tables-only /c -### -- %s 2>&1 | FileCheck -check-prefix=ZGMLT %s | ||||
// ZGMLT: "-gcodeview" | // ZGMLT: "-gcodeview" | ||||
// ZGMLT: "-debug-info-kind=line-tables-only" | // ZGMLT: "-debug-info-kind=line-tables-only" | ||||
Show All 12 Lines | |||||
// came out right, but had wrong semantics, because an invariant assumed by | // came out right, but had wrong semantics, because an invariant assumed by | ||||
// CompilerInvocation was violated: it expects that at most one of {gdwarfN, | // CompilerInvocation was violated: it expects that at most one of {gdwarfN, | ||||
// line-tables-only} appear. If you assume that, then you can safely use | // line-tables-only} appear. If you assume that, then you can safely use | ||||
// Args.hasArg to test whether a boolean flag is present without caring | // Args.hasArg to test whether a boolean flag is present without caring | ||||
// where it appeared. And for this test, it appeared to the left of -gdwarf | // where it appeared. And for this test, it appeared to the left of -gdwarf | ||||
// which made it "win". This test could not detect that bug. | // which made it "win". This test could not detect that bug. | ||||
// RUN: %clang_cl /Z7 -gdwarf /c -### -- %s 2>&1 | FileCheck -check-prefix=Z7_gdwarf %s | // RUN: %clang_cl /Z7 -gdwarf /c -### -- %s 2>&1 | FileCheck -check-prefix=Z7_gdwarf %s | ||||
// Z7_gdwarf: "-gcodeview" | // Z7_gdwarf: "-gcodeview" | ||||
// Z7_gdwarf: "-debug-info-kind=limited" | // Z7_gdwarf: "-debug-info-kind=constructor" | ||||
// Z7_gdwarf: "-dwarf-version=4" | // Z7_gdwarf: "-dwarf-version=4" | ||||
// RUN: %clang_cl -fmsc-version=1800 -TP -### -- %s 2>&1 | FileCheck -check-prefix=CXX11 %s | // RUN: %clang_cl -fmsc-version=1800 -TP -### -- %s 2>&1 | FileCheck -check-prefix=CXX11 %s | ||||
// CXX11: -std=c++11 | // CXX11: -std=c++11 | ||||
// RUN: %clang_cl -fmsc-version=1900 -TP -### -- %s 2>&1 | FileCheck -check-prefix=CXX14 %s | // RUN: %clang_cl -fmsc-version=1900 -TP -### -- %s 2>&1 | FileCheck -check-prefix=CXX14 %s | ||||
// CXX14: -std=c++14 | // CXX14: -std=c++14 | ||||
▲ Show 20 Lines • Show All 114 Lines • Show Last 20 Lines |