Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple instructions in return #497

Open
Qpupier opened this issue Jun 10, 2024 · 0 comments
Open

Multiple instructions in return #497

Qpupier opened this issue Jun 10, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@Qpupier
Copy link

Qpupier commented Jun 10, 2024

Description
Multiple instructions in a return don't make an error

Exemple

/* ************************************************************************** */
/*                                                                            */
/*                                                        :::      ::::::::   */
/*   test.c                                             :+:      :+:    :+:   */
/*                                                    +:+ +:+         +:+     */
/*   By: Kunfandi <[email protected]>              +#+  +:+       +#+        */
/*                                                +#+#+#+#+#+   +#+           */
/*   Created: 2024/06/10 17:15:35 by Kunfandi          #+#    #+#             */
/*   Updated: 2024/06/10 17:17:20 by Kunfandi         ###   ########lyon.fr   */
/*                                                                            */
/* ************************************************************************** */

#include <stdio.h>

int	main(void)
{
	return (printf("OK\n"), 0);
}

This file is good with the norminette but it shouldn't.

Additional infos
norminette 3.3.55

@Asandolo Asandolo added the bug Something isn't working label Jun 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants