Changeset View
Changeset View
Standalone View
Standalone View
clang/test/Modules/codegen.test
RUN: rm -rf %t | RUN: rm -rf %t | ||||
REQUIRES: x86-registered-target | REQUIRES: x86-registered-target | ||||
RUN: %clang_cc1 -triple=x86_64-linux-gnu -fmodules-codegen -fmodules-debuginfo -x c++ -fmodules -emit-module -fmodule-name=foo %S/Inputs/codegen/foo.modulemap -o %t/foo.pcm | RUN: %clang_cc1 -triple=x86_64-linux-gnu -fmodules-codegen -fmodules-debuginfo -x c++ -fmodules -emit-module -fmodule-name=foo %S/Inputs/codegen/foo.modulemap -o %t/foo.pcm | ||||
RUN: %clang_cc1 -triple x86_64-linux-gnu -emit-llvm -debug-info-kind=limited -o - %t/foo.pcm | FileCheck --check-prefix=FOO --check-prefix=BOTH %s | FIXME: automatically inserted -allow-unused-prefixes=true. Is the behavior intended? | ||||
RUN: %clang_cc1 -triple x86_64-linux-gnu -emit-llvm -debug-info-kind=limited -o - -fmodules -disable-llvm-passes -fmodule-file=%t/foo.pcm %S/Inputs/codegen/use.cpp | FileCheck --check-prefix=BOTH --check-prefix=USE %s | RUN: %clang_cc1 -triple x86_64-linux-gnu -emit-llvm -debug-info-kind=limited -o - %t/foo.pcm | FileCheck --allow-unused-prefixes=true -check-prefix=FOO --check-prefix=BOTH %s | ||||
FIXME: automatically inserted -allow-unused-prefixes=true. Is the behavior intended? | |||||
RUN: %clang_cc1 -triple x86_64-linux-gnu -emit-llvm -debug-info-kind=limited -o - -fmodules -disable-llvm-passes -fmodule-file=%t/foo.pcm %S/Inputs/codegen/use.cpp | FileCheck --allow-unused-prefixes=true -check-prefix=BOTH --check-prefix=USE %s | |||||
For want of any better definition, inline asm goes "everywhere" the same as it | For want of any better definition, inline asm goes "everywhere" the same as it | ||||
if it were in a header (with the disadvantage that the inline asm will be | if it were in a header (with the disadvantage that the inline asm will be | ||||
included in the program if the module is used, even if the header containing | included in the program if the module is used, even if the header containing | ||||
the inline asm is never included - unlike a non-modular build). | the inline asm is never included - unlike a non-modular build). | ||||
This is inconsistent with how namespace scope static variables are handled - | This is inconsistent with how namespace scope static variables are handled - | ||||
Show All 37 Lines |