[clang] ac8dab8 - Add some more expected warnings to this C99 DR test

Aaron Ballman via cfe-commits cfe-commits at lists.llvm.org
Fri Jul 1 05:12:26 PDT 2022


Author: Aaron Ballman
Date: 2022-07-01T08:11:46-04:00
New Revision: ac8dab8e09d8faee902861343ccb9278982f4306

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

LOG: Add some more expected warnings to this C99 DR test

This should address the issue found by:
https://lab.llvm.org/buildbot/#/builders/171/builds/16835

Added: 
    

Modified: 
    clang/test/C/drs/dr2xx.c

Removed: 
    


################################################################################
diff  --git a/clang/test/C/drs/dr2xx.c b/clang/test/C/drs/dr2xx.c
index aa5fcff18f75..e4fe3183b02c 100644
--- a/clang/test/C/drs/dr2xx.c
+++ b/clang/test/C/drs/dr2xx.c
@@ -36,8 +36,8 @@ void dr204(void) {
    * rank; it's acceptable to use an unsigned long or unsigned int for the size
    * type (those ranks are not greater than that of signed long).
    */
-   (void)_Generic(s + sl, unsigned long long : 1, unsigned long : 1, unsigned int : 1);
-   (void)_Generic(p + sl, signed long long : 1, signed long : 1, signed int : 1);
+   (void)_Generic(s + sl, unsigned long long : 1, unsigned long : 1, unsigned int : 1); /* c89only-warning {{'long long' is an extension when C99 mode is not enabled}} */
+   (void)_Generic(p + sl, signed long long : 1, signed long : 1, signed int : 1);       /* c89only-warning {{'long long' is an extension when C99 mode is not enabled}} */
 #elif __LLONG_WIDTH__ == __LONG_WIDTH__
   /* But if the implementation doesn't support a larger standard integer type
    * than signed long, the conversion rank should prefer signed long if the type


        


More information about the cfe-commits mailing list