File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -260,6 +260,18 @@ def test_xcpp_omp(self):
260260 reply , output_msgs = self .execute_helper (code = self .code_omp ,timeout = 20 )
261261 self .assertEqual (output_msgs [0 ]['content' ]['name' ], 'stdout' )
262262
263+ code_omp = """
264+ #include <omp.h>
265+ #include <iostream>
266+ #include <clang/Interpreter/CppInterOp.h>
267+ """
268+ def test_xcpp_omp_2 (self ):
269+ self .flush_channels ()
270+ reply , output_msgs = self .execute_helper (code = self .code_omp ,timeout = 20 )
271+ self .assertEqual (output_msgs [0 ]['msg_type' ], 'stream' )
272+ self .assertEqual (output_msgs [0 ]['content' ]['name' ], 'stderr' )
273+ self .assertEqual (output_msgs [0 ]['content' ]['text' ], '2' )
274+
263275 kernel_names = ['xcpp17-omp' , 'xcpp20-omp' , 'xcpp23-omp' ]
264276
265277 for name in kernel_names :
You can’t perform that action at this time.
0 commit comments