mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-12-06 23:11:54 +00:00
They don't actually influence the result of the module compilation. llvm-svn: 229834
37 lines
1.5 KiB
C++
37 lines
1.5 KiB
C++
// Used module not built with -decluse.
|
|
// RUN: rm -rf %t
|
|
// RUN: %clang_cc1 -x c++ -fmodules -fmodule-name=XB -emit-module \
|
|
// RUN: -I %S/Inputs/declare-use %S/Inputs/declare-use/module.map -o %t/b.pcm
|
|
// RUN: %clang_cc1 -x c++ -fmodules -fmodules-cache-path=%t \
|
|
// RUN: -fmodules-decluse \
|
|
// RUN: -fmodule-file=%t/b.pcm -fmodule-name=XE -I %S/Inputs/declare-use %s
|
|
//
|
|
// Main module not built with -decluse.
|
|
// RUN: rm -rf %t
|
|
// RUN: %clang_cc1 -x c++ -fmodules -fmodule-name=XB -emit-module \
|
|
// RUN: -fmodules-decluse \
|
|
// RUN: -I %S/Inputs/declare-use %S/Inputs/declare-use/module.map -o %t/b.pcm
|
|
// RUN: %clang_cc1 -x c++ -fmodules -fmodules-cache-path=%t \
|
|
// RUN: -fmodule-file=%t/b.pcm -fmodule-name=XE -I %S/Inputs/declare-use %s
|
|
//
|
|
// Used module not built with -decluse.
|
|
// RUN: rm -rf %t
|
|
// RUN: %clang_cc1 -x c++ -fmodules -fmodule-name=XB -emit-module \
|
|
// RUN: -I %S/Inputs/declare-use %S/Inputs/declare-use/module.map -o %t/b.pcm
|
|
// RUN: %clang_cc1 -x c++ -fmodules -fmodules-cache-path=%t \
|
|
// RUN: -fmodules-strict-decluse \
|
|
// RUN: -fmodule-file=%t/b.pcm -fmodule-name=XE -I %S/Inputs/declare-use %s
|
|
//
|
|
// Main module not built with -decluse.
|
|
// RUN: rm -rf %t
|
|
// RUN: %clang_cc1 -x c++ -fmodules -fmodule-name=XB -emit-module \
|
|
// RUN: -fmodules-strict-decluse \
|
|
// RUN: -I %S/Inputs/declare-use %S/Inputs/declare-use/module.map -o %t/b.pcm
|
|
// RUN: %clang_cc1 -x c++ -fmodules -fmodules-cache-path=%t \
|
|
// RUN: -fmodule-file=%t/b.pcm -fmodule-name=XE -I %S/Inputs/declare-use %s
|
|
|
|
#include "b.h"
|
|
|
|
const int g = b;
|
|
|