blob: 9b718ca9a3cf0edc60f39a41eb3962919334a42a [file] [log] [blame]
David Blaikiee6b7c282017-04-11 20:46:34 +00001RUN: rm -rf %t
2REQUIRES: x86-registered-target
3
David Blaikie061afdc2017-04-12 21:09:34 +00004RUN: %clang_cc1 -triple=x86_64-linux-gnu -fmodules-codegen -fmodules-debuginfo \
5RUN: -x c++ -fmodules -emit-module -fmodule-name=foo \
David Blaikiee6b7c282017-04-11 20:46:34 +00006RUN: %S/Inputs/codegen-nodep/foo.modulemap -o - \
7RUN: | llvm-bcanalyzer - -dump \
8RUN: | FileCheck %s
9
David Blaikie1ac9c982017-04-11 21:13:37 +000010Ensure there are only two modular codegen decls (one for the class, one for the
11function - none for the class and function templates).
David Blaikiee6b7c282017-04-11 20:46:34 +000012
David Blaikie1ac9c982017-04-11 21:13:37 +000013CHECK: <MODULAR_CODEGEN_DECLS op0={{[0-9]+}} op1={{[0-9]+}}/>