[clang] 632cfbc - [NFC][test] Fix the line num of expected-error for CSKY at builtin-alloca-with-align.c

Zi Xuan Wu via cfe-commits cfe-commits at lists.llvm.org
Fri May 20 01:56:46 PDT 2022


Author: Zi Xuan Wu
Date: 2022-05-20T16:54:23+08:00
New Revision: 632cfbc9f933afc9956f7e0b26086fb1cb7294b5

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

LOG: [NFC][test] Fix the line num of expected-error for CSKY at builtin-alloca-with-align.c

Added: 
    

Modified: 
    clang/test/Sema/builtin-alloca-with-align.c

Removed: 
    


################################################################################
diff  --git a/clang/test/Sema/builtin-alloca-with-align.c b/clang/test/Sema/builtin-alloca-with-align.c
index 0a3e0f6a20220..5f55c070fa333 100644
--- a/clang/test/Sema/builtin-alloca-with-align.c
+++ b/clang/test/Sema/builtin-alloca-with-align.c
@@ -31,7 +31,7 @@ void test7(int a) {
 void test8(void) {
   __builtin_alloca_with_align(sizeof(__INT64_TYPE__), __alignof__(__INT64_TYPE__)); // expected-warning {{second argument to __builtin_alloca_with_align is supposed to be in bits}}
 #if defined(__csky__)
-  // expected-error at -1 {{requested alignment must be 8 or greater}}
+  // expected-error at -2 {{requested alignment must be 8 or greater}}
   // Because the alignment of long long is 4 in CSKY target
 #endif
 }


        


More information about the cfe-commits mailing list