Skip to content
Snippets Groups Projects
Commit 91cd6cd9 authored by Georg Sauthoff's avatar Georg Sauthoff
Browse files

forward declare symbols

to fix compile errors on Fedora 40
parent dfafc193
No related branches found
No related tags found
No related merge requests found
...@@ -36,17 +36,25 @@ class Basic(unittest.TestCase): ...@@ -36,17 +36,25 @@ class Basic(unittest.TestCase):
stderr=subprocess.STDOUT) stderr=subprocess.STDOUT)
def test_sort(self): def test_sort(self):
self.create_ar('zoo', '''void zoo() self.create_ar('zoo', '''
#include <stdio.h>
void yar();
void zoo()
{ {
puts("zoo"); puts("zoo");
yar(); yar();
}''') }''')
self.create_ar('yar', '''void yar() self.create_ar('yar', '''
#include <stdio.h>
void xaz();
void yar()
{ {
puts("yar"); puts("yar");
xaz(); xaz();
}''') }''')
self.create_ar('xaz', '''void xaz() self.create_ar('xaz', '''
#include <stdio.h>
void xaz()
{ {
puts("xaz"); puts("xaz");
}''') }''')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment