Author: Aaron Ballman
Date: 2022-12-08T13:19:29-05:00
New Revision: d694e2490af8b2e92c79b2c1b543bcc4bb3981d1

URL: 
https://github.com/llvm/llvm-project/commit/d694e2490af8b2e92c79b2c1b543bcc4bb3981d1
DIFF: 
https://github.com/llvm/llvm-project/commit/d694e2490af8b2e92c79b2c1b543bcc4bb3981d1.diff

LOG: Update the status of a few more C DRs

This includes tests for DR085 and DR259.

Added: 
    clang/test/C/drs/dr259.c

Modified: 
    clang/test/C/drs/dr0xx.c
    clang/www/c_dr_status.html

Removed: 
    


################################################################################
diff  --git a/clang/test/C/drs/dr0xx.c b/clang/test/C/drs/dr0xx.c
index 942e83bef886c..6a3717f0729b6 100644
--- a/clang/test/C/drs/dr0xx.c
+++ b/clang/test/C/drs/dr0xx.c
@@ -70,6 +70,9 @@
  * WG14 DR080: yes
  * Merging of string constants
  *
+ * WG14 DR085: yes
+ * Returning from main
+ *
  * WG14 DR086: yes
  * Object-like macros in system headers
  *

diff  --git a/clang/test/C/drs/dr259.c b/clang/test/C/drs/dr259.c
new file mode 100644
index 0000000000000..0bd039e04bef5
--- /dev/null
+++ b/clang/test/C/drs/dr259.c
@@ -0,0 +1,21 @@
+/* RUN: %clang_cc1 -std=c89 -E -verify %s | FileCheck %s
+   RUN: %clang_cc1 -std=c99 -E -verify %s | FileCheck %s
+   RUN: %clang_cc1 -std=c11 -E -verify %s | FileCheck %s
+   RUN: %clang_cc1 -std=c17 -E -verify %s | FileCheck %s
+   RUN: %clang_cc1 -std=c2x -E -verify %s | FileCheck %s
+ */
+
+/* expected-no-diagnostics */
+
+/* WG14 DR259: yes
+ * Macro invocations with no arguments
+ */
+#define m0() replacement
+#define m1(x) begin x end
+
+m0() m1()
+
+/*
+CHECK: replacement begin end
+*/
+

diff  --git a/clang/www/c_dr_status.html b/clang/www/c_dr_status.html
index ea38597717363..15e92c5eb2ccb 100644
--- a/clang/www/c_dr_status.html
+++ b/clang/www/c_dr_status.html
@@ -565,7 +565,7 @@ <h2 id="cdr">C defect report implementation status</h2>
     <td><a 
href="https://www.open-std.org/jtc1/sc22/wg14/www/docs/dr_085.html";>85</a></td>
     <td>C89</td>
     <td>Returning from main</td>
-    <td class="unknown" align="center">Unknown</td>
+    <td class="full" align="center">Yes</td>
   </tr>
   <tr id="86">
     <td><a 
href="https://www.open-std.org/jtc1/sc22/wg14/www/docs/dr_086.html";>86</a></td>
@@ -1488,7 +1488,7 @@ <h2 id="cdr">C defect report implementation status</h2>
     <td><a 
href="https://www.open-std.org/jtc1/sc22/wg14/www/docs/dr_259.htm";>259</a></td>
     <td>NAD</td>
     <td>Macro invocations with no arguments</td>
-    <td class="unknown" align="center">Unknown</td>
+    <td class="full" align="center">Yes</td>
   </tr>
   <tr id="260">
     <td><a 
href="https://www.open-std.org/jtc1/sc22/wg14/www/docs/dr_260.htm";>260</a></td>


        
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to