aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/functions.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/functions.sh')
-rw-r--r--tests/functions.sh20
1 files changed, 0 insertions, 20 deletions
diff --git a/tests/functions.sh b/tests/functions.sh
index ddae9b2..e15c900 100644
--- a/tests/functions.sh
+++ b/tests/functions.sh
@@ -107,26 +107,6 @@ int main() {
}
EOF
-test_exit_code 0 <<'EOF'
-#include <stdarg.h>
-#include <helpers.h>
-
-int sum(int n, ...) {
- va_list args;
- va_start(args, n);
- int s = 0;
- for (int i = 0; i < n; ++i) {
- s += va_arg(args, int);
- }
- va_end(args);
- return s;
-}
-
-int main() {
- ASSERT_EQ(400, sum(5, 100, 90, 80, 70, 60));
-}
-EOF
-
# implicit return
# C99: 5.1.2.2.3
test_exit_code 0 <<'EOF'