1651f13cea278ec967336033dd032faef0e9fc2ecStephen Hines// RUN: %clang_cc1 %s -verify -fsyntax-only 2651f13cea278ec967336033dd032faef0e9fc2ecStephen Hines 3651f13cea278ec967336033dd032faef0e9fc2ecStephen Hinesint a __attribute__((noduplicate)); // expected-warning {{'noduplicate' attribute only applies to functions}} 4651f13cea278ec967336033dd032faef0e9fc2ecStephen Hines 5651f13cea278ec967336033dd032faef0e9fc2ecStephen Hinesvoid t1() __attribute__((noduplicate)); 6651f13cea278ec967336033dd032faef0e9fc2ecStephen Hines 7651f13cea278ec967336033dd032faef0e9fc2ecStephen Hinesvoid t2() __attribute__((noduplicate(2))); // expected-error {{'noduplicate' attribute takes no arguments}} 8651f13cea278ec967336033dd032faef0e9fc2ecStephen Hines 9