summaryrefslogtreecommitdiffstats
path: root/clang/test/Modules/codegen.test
blob: f1823d55bafc94c5eeb84b1560081604c15e4ed2 (plain)
1
2
3
4
5
6
7
8
9
10
RUN: rm -rf %t
REQUIRES: x86-registered-target

RUN: %clang_cc1 -triple=x86_64-linux-gnu -fmodules-codegen -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 -o - %t/foo.pcm | FileCheck %s

CHECK: $_Z2f1PKcz = comdat any
CHECK: define weak_odr void @_Z2f1PKcz(i8* %fmt, ...) #{{[0-9]+}} comdat
CHECK:   call void @llvm.va_start(i8* %{{[a-zA-Z0-9]*}})
OpenPOWER on IntegriCloud