summaryrefslogtreecommitdiffstats
path: root/clang/test/CXX/modules-ts/basic/basic.link/p3.cppm
blob: c1d4d795317452b845e4cbabd59c81f7691d1ccd (plain)
1
2
3
4
5
6
7
8
9
10
11
// RUN: %clang_cc1 -fmodules-ts %s -emit-module-interface -o %t
// RUN: %clang_cc1 -fmodules-ts -x pcm %t -emit-llvm -o - | FileCheck %s

export module M;

// CHECK-DAG: @_ZW1ME1a = constant i32 1
const int a = 1;
// CHECK-DAG: @b = constant i32 2
export const int b = 2;

export int f() { return a + b; }
OpenPOWER on IntegriCloud