blob: 7a4d126097a7bcf7e4cf97c7313e49052387e77a [file] [log] [blame]
Richard Smith762bb9d2011-10-13 22:29:44 +00001// RUN: %clang_cc1 -triple x86_64-apple-darwin -std=c++11 -fsyntax-only -verify %s
Richard Smith0093e122013-03-09 23:56:02 +00002// RUN: %clang_cc1 -triple x86_64-apple-darwin -std=c11 -x c -fsyntax-only -verify %s
Douglas Gregor17c8c842011-09-27 17:00:18 +00003
Seth Cantrell7748cbc2012-01-18 12:27:10 +00004int array0[u'ñ' == u'\xf1'? 1 : -1];
5int array1['\xF1' != u'\xf1'? 1 : -1];
6int array1['ñ' != u'\xf1'? 1 : -1]; // expected-error {{character too large for enclosing character literal type}}