================ @@ -0,0 +1,7 @@ +// RUN: %clang_cc1 -foverflow-behavior-types -std=c++11 -ast-print %s -o - | FileCheck %s + +extern int __attribute__((overflow_behavior(no_wrap))) a; +extern int __attribute__((overflow_behavior(wrap))) b; + +// CHECK: extern __no_wrap int a; +// CHECK: extern __wrap int b; ---------------- mizvekov wrote:
Hmm, this doesn't look right. The type was written with `__attribute__`, but here it's printed without it. This looks like we lost an AttributedType type sugar somewhere. Also, can you make sure to test spelling without __attribute__ as well, and also make this test a round-trip one, where you compile the "-ast-print" output with clang itself again and check that it produces the same thing? https://github.com/llvm/llvm-project/pull/148914 _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits