Revert "Tokenizer: handle when __asm__ directive is provided for function"

This reverts commit f25b8cf662.
This commit is contained in:
Daniel Marjamäki 2022-05-07 21:53:10 +02:00
parent f25b8cf662
commit 449d351095
2 changed files with 0 additions and 7 deletions

View File

@ -11425,11 +11425,6 @@ void Tokenizer::simplifyAsm()
else
continue;
if (Token::simpleMatch(tok->previous(), ")")) {
tok->deleteThis();
continue;
}
// insert "asm ( "instruction" )"
tok->str("asm");
if (tok->strAt(1) != ";" && tok->strAt(1) != "{")

View File

@ -994,8 +994,6 @@ private:
// 'asm ( ) ;' should be in the same line
ASSERT_EQUALS(";\n\nasm ( \"\"mov ax,bx\"\" ) ;", tokenizeAndStringify(";\n\n__asm__ volatile ( \"mov ax,bx\" );"));
ASSERT_EQUALS("void func1 ( ) ;", tokenizeAndStringify("void func1() __asm__(\"...\");"));
}
// #4725 - ^{}