Skip to content

Commit 6c71a62

Browse files
Teemperorvgvassilev
authored andcommitted
[cxxmodules] Add test for testing implicit module build error
1 parent 281d43b commit 6c71a62

File tree

8 files changed

+33
-0
lines changed

8 files changed

+33
-0
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
if(runtime_cxxmodules)
2+
add_subdirectory(module-dep-order)
3+
endif()
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.rootrc
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
set(ENV{ROOT_MODULES} 1)
2+
ROOTTEST_ADD_TEST(cxxmodules-implicit-build-error
3+
COMMAND ${ROOT_rootcling_CMD} -f ${CMAKE_CURRENT_BINARY_DIR}/out.cxx -cxxmodule
4+
implicit_build.h
5+
implicit_build_linkdef.h
6+
WORKING_DIR ${CMAKE_CURRENT_SOURCE_DIR}
7+
PASSREGEX "Had to build non-system module A implicitly")
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#pragma once
2+
3+
#include "inc/A.h"
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
// $Id$
2+
// Main authors: Matevz Tadel & Alja Mrak-Tadel: 2006, 2007
3+
4+
/**************************************************************************
5+
* Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
6+
* See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for *
7+
* full copyright notice. *
8+
**************************************************************************/
9+
10+
#pragma link off all functions;
11+
#pragma link off all globals;
12+
#pragma link off all classes;
13+
14+
#pragma link C++ class A+;
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#pragma once
2+
3+
class A{};
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
module A { header "A.h" export * }
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
module out { header "implicit_build.h" export * }

0 commit comments

Comments
 (0)