1a5728872c7702ddd09537c95bc3cbd20e1f2fb09Daniel Dunbar// RUN: %clang_cc1 %s -verify -fsyntax-only 2d87df37e0adaba0d5e33da7b1a14d7f1d94c5eefAnders Carlsson 378d1a10e13a1abfd4830bccf2a97b2993da1ed5cNick Lewyckyint a __attribute__((nodebug)); 478d1a10e13a1abfd4830bccf2a97b2993da1ed5cNick Lewycky 578d1a10e13a1abfd4830bccf2a97b2993da1ed5cNick Lewyckyvoid b() { 678d1a10e13a1abfd4830bccf2a97b2993da1ed5cNick Lewycky int b __attribute__((nodebug)); // expected-warning {{'nodebug' only applies to variables with static storage duration and functions}} 7baec77865b3ce64bb942dddc5dc2fada84ce5099Aaron Ballman} 8d87df37e0adaba0d5e33da7b1a14d7f1d94c5eefAnders Carlsson 9d87df37e0adaba0d5e33da7b1a14d7f1d94c5eefAnders Carlssonvoid t1() __attribute__((nodebug)); 10d87df37e0adaba0d5e33da7b1a14d7f1d94c5eefAnders Carlsson 11baec77865b3ce64bb942dddc5dc2fada84ce5099Aaron Ballmanvoid t2() __attribute__((nodebug(2))); // expected-error {{'nodebug' attribute takes no arguments}} 12