1// RUN: %clang_cc1 -fmodules-ts -triple x86_64-linux %s -emit-module-interface -o %t
2// RUN: %clang_cc1 -fmodules-ts -triple x86_64-linux -x pcm %t -emit-llvm -o - | FileCheck %s
3
4export module M;
5
6// CHECK-DAG: @_ZW1ME1a = constant i32 1
7const int a = 1;
8// CHECK-DAG: @b = constant i32 2
9export const int b = 2;
10
11export int f() { return a + b; }
12