[llvm] [LLVM][AsmParser] Add support for C style comments (PR #111554)

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 1 06:38:35 PDT 2024


================
@@ -0,0 +1,10 @@
+; RUN: not llvm-as --disable-output %s 2>&1 | FileCheck %s -DFILE=%s
+
+ at B = external global i32
+
+*/
+
+/*   /* Nested comments not supported */
+
+; CHECK: [[FILE]]:[[@LINE+1]]:1: error: redefinition of global '@B'
----------------
nikic wrote:

This is not the error I would have expected for this test case. Why isn't there an error at the first `*/`?

https://github.com/llvm/llvm-project/pull/111554


More information about the llvm-commits mailing list