This commit is contained in:
1 file changed
+3
-2
@@ -3,6 +3,7 @@
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
import os
|
||||
from pathlib import Path
|
||||
import subprocess
|
||||
import tempfile
|
||||
@@ -56,10 +57,10 @@ int main(void) {
|
||||
self.assertEqual(result.returncode, 0, result.stderr)
|
||||
|
||||
def test_header_is_c11(self) -> None:
|
||||
self.compile("cc", "c", "-std=c11")
|
||||
self.compile(os.environ.get("CC", "cc"), "c", "-std=c11")
|
||||
|
||||
def test_header_is_cpp20(self) -> None:
|
||||
self.compile("c++", "cpp", "-std=c++20")
|
||||
self.compile(os.environ.get("CXX", "c++"), "cpp", "-std=c++20")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
||||
Reference in new issue
Block a user