Files
swift-mirror/test/ClangImporter/disable-modules-validate-system-headers.swift
Ben Langmuir 2210d24b48 [clang-importer] Fix option -disable-modules-validate-system-headers
This option stopped working when clang changed its default behaviour to
-fmodules-validate-system-headers; we now need to explicitly disable it
to preserve the behaviour of our flag.

rdar://problem/50908762
2019-05-17 16:22:37 -07:00

8 lines
456 B
Swift

// RUN: %target-swift-frontend %s -parse -dump-clang-diagnostics 2>&1 | %FileCheck %s -check-prefix=DEFAULT
// DEFAULT: -fmodules-validate-system-headers
// DEFAULT-NOT: -fno-modules-validate-system-headers
// RUN: %target-swift-frontend %s -parse -dump-clang-diagnostics -disable-modules-validate-system-headers 2>&1 | %FileCheck %s -check-prefix=DISABLE
// DISABLE: -fno-modules-validate-system-headers
// DISABLE-NOT: -fmodules-validate-system-headers