blob: da3bcb2174a7ef874f313bbc37a7e8943afb549f [file] [log] [blame]
Richard Smith8df390f2016-09-08 23:14:54 +00001// RUN: %clang_cc1 -fmodules-ts -std=c++1z -triple=x86_64-linux-gnu -emit-module-interface %s -o %t.pcm
2// RUN: %clang_cc1 -fmodules-ts -std=c++1z -triple=x86_64-linux-gnu %t.pcm -emit-llvm -o - | FileCheck %s
3
4module FooBar;
5
6export {
7 // CHECK-LABEL: define i32 @_Z1fv(
8 int f() { return 0; }
9}
10
11// FIXME: Emit global variables and their initializers with this TU.
12// Emit an initialization function that other TUs can call, with guard variable.
13
14// FIXME: Mangle non-exported symbols so they don't collide with
15// non-exported symbols from other modules?
16
17// FIXME: Formally-internal-linkage symbols that are used from an exported
18// symbol need a mangled name and external linkage.
19
20// FIXME: const-qualified variables don't have implicit internal linkage when owned by a module.