summaryrefslogtreecommitdiff
path: root/test/Modules/merge-function-defs.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/Modules/merge-function-defs.cpp')
-rw-r--r--test/Modules/merge-function-defs.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/Modules/merge-function-defs.cpp b/test/Modules/merge-function-defs.cpp
new file mode 100644
index 0000000000000..2f08f523c3aaa
--- /dev/null
+++ b/test/Modules/merge-function-defs.cpp
@@ -0,0 +1,11 @@
+// RUN: rm -rf %t
+// RUN: %clang_cc1 -I%S/Inputs/merge-function-defs -fmodules -fmodule-map-file=%S/Inputs/merge-function-defs/map -fmodules-cache-path=%t %s -emit-llvm-only
+
+#include "b.h"
+
+struct X {
+ virtual void f();
+};
+inline void X::f() {}
+
+X x;