blob: 26847a798246304a49d9bff8eb033d77ceb1b9b5 [file] [log] [blame]
// RUN: %target-swift-frontend -parse %s 2>&1 | %FileCheck -allow-empty %s
// Test that we can have the allowed # of parens.
// CHECK-NOT: error
let a = (((((((((((((((((((((((((((((((( ((((((((((((((((((((((((((((((((
(((((((((((((((((((((((((((((((( ((((((((((((((((((((((((((((((((
(((((((((((((((((((((((((((((((( ((((((((((((((((((((((((((((((((
(((((((((((((((((((((((((((((((( ((((((((((((((((((((((((((((((
1
)))))))))))))))))))))))))))))) ))))))))))))))))))))))))))))))))
)))))))))))))))))))))))))))))))) ))))))))))))))))))))))))))))))))
)))))))))))))))))))))))))))))))) ))))))))))))))))))))))))))))))))
)))))))))))))))))))))))))))))))) ))))))))))))))))))))))))))))))))
// Test that we can have the allowed # of curly braces.
/// CHECK-NOT: error
let b = {{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{ {{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{
{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{ {{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{
{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{ {{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{
{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{ {{{{{{{{{{{{{{{{{{{{{{{{{{{{{{
1
}}}}}}}}}}}}}}}}}}}}}}}}}}}}}} }}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}
}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}} }}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}
}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}} }}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}
}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}} }}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}
// Test that we can have the allowed # of mixed brackets.
// CHECK-NOT: error
let c = ({({({({ ({({({([ ({({({({ ({({({([ ({({({({ ({({({([ ({({({({ ({({({({
({({({({ ({({({([ ({({({({ ({({({([ ({({({({ ({({({([ ({({({({ ({({({({
({({({({ ({({({([ ({({({({ ({({({([ ({({({({ ({({({([ ({({({({ ({({({({
({({({({ ({({({([ ({({({({ ({({({([ ({({({({ ({({({([ ({({({({ ({({({
1
})})}) })})})}) ])})})}) })})})}) ])})})}) })})})}) ])})})}) })})})})
})})})}) })})})}) ])})})}) })})})}) ])})})}) })})})}) ])})})}) })})})})
})})})}) })})})}) ])})})}) })})})}) ])})})}) })})})}) ])})})}) })})})})
})})})}) })})})}) ])})})}) })})})}) ])})})}) })})})}) ])})})}) })})})})