David Blaikie | e6b7c28 | 2017-04-11 20:46:34 +0000 | [diff] [blame] | 1 | RUN: rm -rf %t |
| 2 | REQUIRES: x86-registered-target |
| 3 | |
David Blaikie | 061afdc | 2017-04-12 21:09:34 +0000 | [diff] [blame] | 4 | RUN: %clang_cc1 -triple=x86_64-linux-gnu -fmodules-codegen -fmodules-debuginfo \ |
| 5 | RUN: -x c++ -fmodules -emit-module -fmodule-name=foo \ |
David Blaikie | e6b7c28 | 2017-04-11 20:46:34 +0000 | [diff] [blame] | 6 | RUN: %S/Inputs/codegen-nodep/foo.modulemap -o - \ |
| 7 | RUN: | llvm-bcanalyzer - -dump \ |
| 8 | RUN: | FileCheck %s |
| 9 | |
David Blaikie | 1ac9c98 | 2017-04-11 21:13:37 +0000 | [diff] [blame] | 10 | Ensure there are only two modular codegen decls (one for the class, one for the |
| 11 | function - none for the class and function templates). |
David Blaikie | e6b7c28 | 2017-04-11 20:46:34 +0000 | [diff] [blame] | 12 | |
David Blaikie | 1ac9c98 | 2017-04-11 21:13:37 +0000 | [diff] [blame] | 13 | CHECK: <MODULAR_CODEGEN_DECLS op0={{[0-9]+}} op1={{[0-9]+}}/> |